virt-install using --location http://localhost/inst doesn't complete

Issues related to applications and software problems and general support
PortoFino
Posts: 16
Joined: 2020/04/02 17:49:25

virt-install using --location http://localhost/inst doesn't complete

Post by PortoFino » 2020/04/02 18:03:30

hi,
Should you reached this before, please let me know.

ISSUE

virt-install works well when passing arguments --cdrom /path/to/iso (and creates the guest) like

Code: Select all

[root@192-168-0-104 admin]#  virt-install --virt-type kvm --name tester2 --memory 2048 --disk path=/var/lib/libvirt/images/tester2.qcow2,format=qcow2,size=20,bus=virtio --os-variant generic --os-type linux --cdrom Downloads/CentOS-8.1.1911-x86_64-dvd1.iso --connect qemu:///system --debug  --vnc &
whereas using --location http://localhost/inst

Code: Select all

root@192-168-0-104 admin]# virt-install --virt-type kvm --name tester2 --memory 2048 --disk path=/var/lib/libvirt/images/tester2.qcow2,format=qcow2,size=20,bus=virtio --os-variant centos7.0 --location http://localhost/inst --connect qemu:///system --graphics vnc &
the guest just created stops at
[ ok ] reached target basic system
and then dracut times out after a while having the following sequence:
dracut-initqueue[941]: Warning: dracut-initqueue timeout - starting timeout scripts
dracut-initqueue[941]: Warning: could not boot[ ok ] Starting setup virtual console
Starting emergency shell ...Reached target emergency modeWarning: /dev/root/ does not exists
Generating "/run/initramfs/rdsosreport.txt"

The GUI of the virtual console of the client doesn't create and it hangs.

CONDITIONS

version Centos 8.1
cat /etc/*release|grep rel
CentOS Linux release 8.1.1911 (Core)

firewal stopped, selinux permissive; http server on host listening
The content of the web server with the installation files was copied with and the http local repository has been created with:
dnf install httpd
systemctl enable httpd
systemctl start httpdcp -apRfv /media/iso/. /var/www/html/inst/
diff -R /media/iso/ /var/www/html/inst/
chcon -R --reference /var/www/ /var/www/html/inst
chmod ugo+wx /var/www/html/inst/
[root@192-168-0-104 admin]# netstat -atunp |grep httpd
tcp6       0      0 :::80                   :::*                    LISTEN      2137/httpd  

LOGS

Tried to debug
==== The command (with --cdrom = ) with good results:

Code: Select all

[root@192-168-0-104 admin]#  virt-install --virt-type kvm --name tester2 --memory 2048 --disk path=/var/lib/libvirt/images/tester2.qcow2,format=qcow2,size=20,bus=virtio --os-variant generic --os-type linux --cdrom Downloads/CentOS-8.1.1911-x86_64-dvd1.iso --connect qemu:///system --debug  --vnc &
[1] 17639
[root@192-168-0-104 admin]# [Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (cli:208) Launched with command line: /usr/share/virt-manager/virt-install --virt-type kvm --name tester2 --memory 2048 --disk path=/var/lib/libvirt/images/tester2.qcow2,format=qcow2,size=20,bus=virtio --os-variant generic --os-type linux --cdrom Downloads/CentOS-8.1.1911-x86_64-dvd1.iso --connect qemu:///system --debug --vnc
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (virt-install:207) Distilled --network options: ['default']
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (virt-install:244) --graphics compat generated: vnc
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (virt-install:139) Distilled --disk options: ['path=/var/lib/libvirt/images/tester2.qcow2,format=qcow2,size=20,bus=virtio']
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (cli:224) Requesting libvirt URI qemu:///system
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (cli:227) Received libvirt URI qemu:///system
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (storage:208) refreshing pool=default
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (disk:225) Creating volume 'tester2.qcow2' on pool 'default'
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (disk:359) disk.set_vol_install: name=tester2.qcow2 poolxml=
<pool type='dir'>
  <name>default</name>
  <uuid>840a9fc8-fa3c-44fc-bf2a-9766f1f91efc</uuid>
  <capacity unit='bytes'>308013432832</capacity>
  <allocation unit='bytes'>31819522048</allocation>
  <available unit='bytes'>276193910784</available>
  <source>
  </source>
  <target>
    <path>/var/lib/libvirt/images</path>
    <permissions>
      <mode>0711</mode>
      <owner>0</owner>
      <group>0</group>
      <label>system_u:object_r:virt_image_t:s0</label>
    </permissions>
  </target>
</pool>

[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (guest:463) Setting Guest osinfo name <_OsVariant name=generic>
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (installer:398) installer.detect_distro returned=None
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (guest:463) Setting Guest osinfo name <_OsVariant name=generic>
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (virt-install:648) Guest.has_install_phase: True
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (cli:272) 
Starting install...

Starting install...
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (storage:643) Creating storage volume 'tester2.qcow2' with xml:
<volume>
  <name>tester2.qcow2</name>
  <capacity>21474836480</capacity>
  <allocation>0</allocation>
  <target>
    <format type="qcow2"/>
    <features>
      <lazy_refcounts/>
    </features>
  </target>
</volume>

[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (storage:681) Using vol create flags=1
Allocating 'tester2.qcow2'                                                                            |  20 GB  00:00:00     
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (storage:687) Storage volume 'tester2.qcow2' install complete.
[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (installer:442) Generated install XML: 
<domain type="kvm">
  <name>tester2</name>
  <uuid>212cd18c-b62d-4fe4-bbb1-13eb4921e1fe</uuid>
  <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch="x86_64" machine="pc-i440fx-rhel7.6.0">hvm</type>
    <boot dev="cdrom"/>
    <boot dev="hd"/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode="host-model"/>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <on_reboot>destroy</on_reboot>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/var/lib/libvirt/images/tester2.qcow2"/>
      <target dev="vda" bus="virtio"/>
    </disk>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source file="/home/admin/Downloads/CentOS-8.1.1911-x86_64-dvd1.iso"/>
      <target dev="hda" bus="ide"/>
      <readonly/>
    </disk>
    <controller type="usb" index="0" model="ich9-ehci1"/>
    <controller type="usb" index="0" model="ich9-uhci1">
      <master startport="0"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci2">
      <master startport="2"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci3">
      <master startport="4"/>
    </controller>
    <interface type="network">
      <source network="default"/>
      <mac address="52:54:00:fc:3f:80"/>
      <model type="e1000"/>
    </interface>
    <console type="pty"/>
    <input type="tablet" bus="usb"/>
    <graphics type="vnc" port="-1"/>
    <video>
      <model type="qxl"/>
    </video>
  </devices>
</domain>

[Mon, 30 Mar 2020 07:55:33 virt-install 17639] DEBUG (installer:443) Generated boot XML: 
<domain type="kvm">
  <name>tester2</name>
  <uuid>212cd18c-b62d-4fe4-bbb1-13eb4921e1fe</uuid>
  <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch="x86_64" machine="pc-i440fx-rhel7.6.0">hvm</type>
    <boot dev="hd"/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode="host-model"/>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/var/lib/libvirt/images/tester2.qcow2"/>
      <target dev="vda" bus="virtio"/>
    </disk>
    <disk type="file" device="cdrom">
      <target dev="hda" bus="ide"/>
      <readonly/>
    </disk>
    <controller type="usb" index="0" model="ich9-ehci1"/>
    <controller type="usb" index="0" model="ich9-uhci1">
      <master startport="0"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci2">
      <master startport="2"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci3">
      <master startport="4"/>
    </controller>
    <interface type="network">
      <source network="default"/>
      <mac address="52:54:00:fc:3f:80"/>
      <model type="e1000"/>
    </interface>
    <console type="pty"/>
    <input type="tablet" bus="usb"/>
    <graphics type="vnc" port="-1"/>
    <video>
      <model type="qxl"/>
    </video>
  </devices>
</domain>

[Mon, 30 Mar 2020 07:55:34 virt-install 17639] DEBUG (installer:497) XML fetched from libvirt object:
<domain type='kvm' id='35'>
  <name>tester2</name>
  <uuid>212cd18c-b62d-4fe4-bbb1-13eb4921e1fe</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-rhel7.6.0'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='custom' match='exact' check='full'>
    <model fallback='forbid'>Haswell-noTSX-IBRS</model>
    <vendor>Intel</vendor>
    <feature policy='require' name='vme'/>
    <feature policy='require' name='ss'/>
    <feature policy='require' name='vmx'/>
    <feature policy='require' name='f16c'/>
    <feature policy='require' name='rdrand'/>
    <feature policy='require' name='hypervisor'/>
    <feature policy='require' name='arat'/>
    <feature policy='require' name='tsc_adjust'/>
    <feature policy='require' name='umip'/>
    <feature policy='require' name='md-clear'/>
    <feature policy='require' name='stibp'/>
    <feature policy='require' name='arch-capabilities'/>
    <feature policy='require' name='ssbd'/>
    <feature policy='require' name='xsaveopt'/>
    <feature policy='require' name='pdpe1gb'/>
    <feature policy='require' name='abm'/>
    <feature policy='require' name='skip-l1dfl-vmentry'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <pm>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
  </pm>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/libvirt/images/tester2.qcow2'/>
      <backingStore/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/home/admin/Downloads/CentOS-8.1.1911-x86_64-dvd1.iso'/>
      <backingStore/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:fc:3f:80'/>
      <source network='default' bridge='virbr0'/>
      <target dev='vnet3'/>
      <model type='e1000'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/6'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/6'>
      <source path='/dev/pts/6'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='vnc' port='5903' autoport='yes' listen='127.0.0.1'>
      <listen type='address' address='127.0.0.1'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='dynamic' model='selinux' relabel='yes'>
    <label>system_u:system_r:svirt_t:s0:c590,c764</label>
    <imagelabel>system_u:object_r:svirt_image_t:s0:c590,c764</imagelabel>
  </seclabel>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+107:+107</label>
    <imagelabel>+107:+107</imagelabel>
  </seclabel>
</domain>

[Mon, 30 Mar 2020 07:55:34 virt-install 17639] DEBUG (cli:395) Launching virt-viewer for graphics type 'vnc'
[Mon, 30 Mar 2020 07:55:34 virt-install 17639] DEBUG (cli:370) Running: virt-viewer --connect qemu:///system --wait tester2
No protocol specified

(virt-viewer:17776): dbind-WARNING **: 07:55:34.530: Could not open X display

(virt-viewer:17776): GLib-GIO-CRITICAL **: 07:55:34.558: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

=== The command (with --location = ) with no results
(same results were obtained when used a public http mirror)

Code: Select all

root@192-168-0-104 admin]# virt-install --virt-type kvm --name tester2 --memory 2048 --disk path=/var/lib/libvirt/images/tester2.qcow2,format=qcow2,size=20,bus=virtio --os-variant centos7.0 --location http://localhost/inst --connect qemu:///system --graphics vnc &[1] 10581
[root@192-168-0-104 admin]# 
Starting install...
Retrieving file vmlinuz...                                                                            | 7.7 MB  00:00:00     
Retrieving file initrd.img...                                                                         |  59 MB  00:00:00     
Allocating 'tester2.qcow2'                                                                            |  20 GB  00:00:00     
No protocol specified

(virt-viewer:10739): dbind-WARNING **: 07:01:02.446: Could not open X display

(virt-viewer:10739): GLib-GIO-CRITICAL **: 07:01:02.472: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

 (cli:227) Received libvirt URI qemu:///system
[Mon, 30 Mar 2020 07:06:10 virt-install 10931] DEBUG (guest:463) Setting Guest osinfo name <_OsVariant name=generic>
[Mon, 30 Mar 2020 07:06:10 virt-install 10931] DEBUG (urlfetcher:104) Using scratchdir=/var/lib/libvirt/boot
[Mon, 30 Mar 2020 07:06:10 virt-install 10931] DEBUG (urldetect:280) Finding distro store for location=http://localhost/inst
[Mon, 30 Mar 2020 07:06:10 virt-install 10931] DEBUG (osdict:260) Error creating libosinfo tree object for location=http://localhost/inst : g-io-error-quark: Failed to load .treeinfo|treeinfo file: Operation not supported (15)
[Mon, 30 Mar 2020 07:06:10 virt-install 10931] DEBUG (urlfetcher:139) Fetching URI: http://localhost/inst/.treeinfo
[Mon, 30 Mar 2020 07:06:10 virt-install 10931] DEBUG (urldetect:71) treeinfo family=CentOS Linux
[Mon, 30 Mar 2020 07:06:10 virt-install 10931] DEBUG (urldetect:75) Found treeinfo version=8


[Mon, 30 Mar 2020 07:10:58 virt-install 11310] DEBUG (cli:395) Launching virt-viewer for graphics type 'vnc'
[Mon, 30 Mar 2020 07:10:58 virt-install 11310] DEBUG (cli:370) Running: virt-viewer --connect qemu:///system --wait tester2
No protocol specified

(virt-viewer:11455): dbind-WARNING **: 07:10:58.348: Could not open X display

(virt-viewer:11455): GLib-GIO-CRITICAL **: 07:10:58.371: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Thank you in advance

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: virt-install using --location http://localhost/inst doesn't complete

Post by aks » 2020/04/05 17:29:08

Seems to not be able to open a VNC connection.
Why not install in text mode, just to get X11 out of the way?

PortoFino
Posts: 16
Joined: 2020/04/02 17:49:25

Re: virt-install using --location http://localhost/inst doesn't complete

Post by PortoFino » 2020/04/06 10:37:36

good idea, I'll try this out.
It is clearly something different between --cdrom *.iso and --location http//...

PortoFino
Posts: 16
Joined: 2020/04/02 17:49:25

Re: virt-install using --location http://localhost/inst doesn't complete

Post by PortoFino » 2020/04/06 11:05:43

aks wrote:
2020/04/05 17:29:08
Seems to not be able to open a VNC connection.
Why not install in text mode, just to get X11 out of the way?
hi aks,
This command worked instantly

Code: Select all

virt-install --name tester2 --memory 2048 --disk path=/var/lib/libvirt/images/tester2.qcow2,size=20 --location http://localhost/inst --graphics none --debug &
it has created the guest but how can I use it ? I mean, I imagine it has no setup, no applications installed maybe no users. Trying to connect with ssh to it led to no way further. It seems that it is created at XML level.

Code: Select all

[root@192-168-0-104 ~]# virsh list --all
 Id    Name                           State
----------------------------------------------------
 2     tester2                        running

[root@192-168-0-104 ~]# ssh tester2
ssh: Could not resolve hostname tester2: Name or service not known
Did I do the text mode install correctly ?

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: virt-install using --location http://localhost/inst doesn't complete

Post by TrevorH » 2020/04/06 11:14:54

virsh console tester2
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

PortoFino
Posts: 16
Joined: 2020/04/02 17:49:25

Re: virt-install using --location http://localhost/inst doesn't complete

Post by PortoFino » 2020/04/06 11:22:04

aks wrote:
2020/04/05 17:29:08
Seems to not be able to open a VNC connection.
Why not install in text mode, just to get X11 out of the way?
This

Code: Select all

virt-install --name tester2 --memory 2048 --disk path=/var/lib/libvirt/images/tester2.qcow2,size=20 --location http://localhost/inst --debug --noautoconsole --wait &
[3] 11673
[root@192-168-0-104 ~]# [Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (cli:208) Launched with command line: /usr/share/virt-manager/virt-install --name tester2 --memory 2048 --disk path=/var/lib/libvirt/images/tester2.qcow2,size=20 --location http://localhost/inst --debug --noautoconsole --wait
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (virt-install:207) Distilled --network options: ['default']
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (virt-install:139) Distilled --disk options: ['path=/var/lib/libvirt/images/tester2.qcow2,size=20']
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (cli:224) Requesting libvirt URI default
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (cli:227) Received libvirt URI qemu:///system
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (connection:251) Fetching volume XML failed: Storage volume not found: no storage vol with matching path '/var/lib/libvirt/qemu/domain-2-tester2'
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (storage:208) refreshing pool=default
[Mon, 06 Apr 2020 14:11:41 virt-manager 10859] DEBUG (connection:749) storage pool refresh event: pool=default
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (disk:225) Creating volume 'tester2.qcow2' on pool 'default'
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (disk:359) disk.set_vol_install: name=tester2.qcow2 poolxml=
<pool type='dir'>
  <name>default</name>
  <uuid>840a9fc8-fa3c-44fc-bf2a-9766f1f91efc</uuid>
  <capacity unit='bytes'>308013432832</capacity>
  <allocation unit='bytes'>17781780480</allocation>
  <available unit='bytes'>290231652352</available>
  <source>
  </source>
  <target>
    <path>/var/lib/libvirt/images</path>
    <permissions>
      <mode>0711</mode>
      <owner>0</owner>
      <group>0</group>
      <label>system_u:object_r:virt_image_t:s0</label>
    </permissions>
  </target>
</pool>

[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (guest:463) Setting Guest osinfo name <_OsVariant name=generic>
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urlfetcher:104) Using scratchdir=/var/lib/libvirt/boot
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urldetect:280) Finding distro store for location=http://localhost/inst
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (osdict:260) Error creating libosinfo tree object for location=http://localhost/inst : g-io-error-quark: Failed to load .treeinfo|treeinfo file: Operation not supported (15)
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urlfetcher:139) Fetching URI: http://localhost/inst/.treeinfo
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urldetect:71) treeinfo family=CentOS Linux
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urldetect:75) Found treeinfo version=8
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urldetect:79) Found treeinfo name=CentOS Linux 8
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urldetect:90) Didn't match treeinfo family regex=.*Fedora.*
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urldetect:90) Didn't match treeinfo family regex=.*(Red Hat Enterprise Linux|RHEL).*
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urldetect:145) converted verstr=8 to version=8 update=0
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urldetect:294) Detected class=_CentOSDistro osvariant=None
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (installer:398) installer.detect_distro returned=None
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (graphics:221) Using default_graphics=spice
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (graphics:232) Local connection, disabling spice image compression.
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] WARNING (virt-install:378) No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results.
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (virt-install:648) Guest.has_install_phase: True
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (cli:272) 
Starting install...

Starting install...
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urlfetcher:207) hasFile(http://localhost/inst/images/pxeboot/vmlinuz) returning True
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urlfetcher:207) hasFile(http://localhost/inst/images/pxeboot/initrd.img) returning True
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urlfetcher:139) Fetching URI: http://localhost/inst/images/pxeboot/vmlinuz
Retrieving file vmlinuz...                                   | 7.7 MB  00:00:00     
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urlfetcher:224) Saved file to /var/lib/libvirt/boot/virtinst-pmb2j61h-vmlinuz
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urlfetcher:139) Fetching URI: http://localhost/inst/images/pxeboot/initrd.img
Retrieving file initrd.img...                                |  59 MB  00:00:00     
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (urlfetcher:224) Saved file to /var/lib/libvirt/boot/virtinst-eadatkr7-initrd.img
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (kernelupload:141) Have access to preferred scratchdir so nothing to upload
[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (storage:643) Creating storage volume 'tester2.qcow2' with xml:
<volume>
  <name>tester2.qcow2</name>
  <capacity>21474836480</capacity>
  <allocation>0</allocation>
  <target>
    <format type="qcow2"/>
    <features>
      <lazy_refcounts/>
    </features>
  </target>
</volume>

[Mon, 06 Apr 2020 14:11:41 virt-install 11673] DEBUG (storage:681) Using vol create flags=1
Allocating 'tester2.qcow2'                                   |  20 GB  00:00:00     
[Mon, 06 Apr 2020 14:11:42 virt-install 11673] DEBUG (storage:687) Storage volume 'tester2.qcow2' install complete.
[Mon, 06 Apr 2020 14:11:42 virt-install 11673] DEBUG (installer:442) Generated install XML: 
<domain type="kvm">
  <name>tester2</name>
  <uuid>525df34f-4369-4b56-8a0d-7cfc2d03438f</uuid>
  <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch="x86_64" machine="pc-i440fx-rhel7.6.0">hvm</type>
    <kernel>/var/lib/libvirt/boot/virtinst-pmb2j61h-vmlinuz</kernel>
    <initrd>/var/lib/libvirt/boot/virtinst-eadatkr7-initrd.img</initrd>
  </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state="off"/>
  </features>
  <cpu mode="host-model"/>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <on_reboot>destroy</on_reboot>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/var/lib/libvirt/images/tester2.qcow2"/>
      <target dev="hda" bus="ide"/>
    </disk>
    <controller type="usb" index="0" model="ich9-ehci1"/>
    <controller type="usb" index="0" model="ich9-uhci1">
      <master startport="0"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci2">
      <master startport="2"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci3">
      <master startport="4"/>
    </controller>
    <interface type="network">
      <source network="default"/>
      <mac address="52:54:00:7a:5d:ce"/>
      <model type="e1000"/>
    </interface>
    <console type="pty"/>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
    </channel>
    <input type="tablet" bus="usb"/>
    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="off"/>
    </graphics>
    <sound model="ich6"/>
    <video>
      <model type="qxl"/>
    </video>
    <redirdev bus="usb" type="spicevmc"/>
    <redirdev bus="usb" type="spicevmc"/>
  </devices>
</domain>

[Mon, 06 Apr 2020 14:11:42 virt-install 11673] DEBUG (installer:443) Generated boot XML: 
<domain type="kvm">
  <name>tester2</name>
  <uuid>525df34f-4369-4b56-8a0d-7cfc2d03438f</uuid>
  <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch="x86_64" machine="pc-i440fx-rhel7.6.0">hvm</type>
    <boot dev="hd"/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state="off"/>
  </features>
  <cpu mode="host-model"/>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2"/>
      <source file="/var/lib/libvirt/images/tester2.qcow2"/>
      <target dev="hda" bus="ide"/>
    </disk>
    <controller type="usb" index="0" model="ich9-ehci1"/>
    <controller type="usb" index="0" model="ich9-uhci1">
      <master startport="0"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci2">
      <master startport="2"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci3">
      <master startport="4"/>
    </controller>
    <interface type="network">
      <source network="default"/>
      <mac address="52:54:00:7a:5d:ce"/>
      <model type="e1000"/>
    </interface>
    <console type="pty"/>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
    </channel>
    <input type="tablet" bus="usb"/>
    <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
      <image compression="off"/>
    </graphics>
    <sound model="ich6"/>
    <video>
      <model type="qxl"/>
    </video>
    <redirdev bus="usb" type="spicevmc"/>
    <redirdev bus="usb" type="spicevmc"/>
  </devices>
</domain>

[Mon, 06 Apr 2020 14:11:42 virt-manager 10859] DEBUG (connection:765) node device lifecycle event: nodedev=net_vnet0_fe_54_00_7a_5d_ce state=VIR_NODE_DEVICE_EVENT_CREATED reason=0
[Mon, 06 Apr 2020 14:11:42 virt-manager 10859] DEBUG (connection:690) domain lifecycle event: domain=tester2 state=VIR_DOMAIN_EVENT_RESUMED reason=VIR_DOMAIN_EVENT_RESUMED_UNPAUSED
[Mon, 06 Apr 2020 14:11:42 virt-manager 10859] DEBUG (connection:1113) domain=tester2 status=Running added
[Mon, 06 Apr 2020 14:11:42 virt-manager 10859] DEBUG (connection:690) domain lifecycle event: domain=tester2 state=VIR_DOMAIN_EVENT_STARTED reason=VIR_DOMAIN_EVENT_STARTED_BOOTED
[Mon, 06 Apr 2020 14:11:42 virt-manager 10859] DEBUG (connection:690) domain lifecycle event: domain=tester2 state=VIR_DOMAIN_EVENT_DEFINED reason=VIR_DOMAIN_EVENT_DEFINED_ADDED
[Mon, 06 Apr 2020 14:11:42 virt-install 11673] DEBUG (installer:497) XML fetched from libvirt object:
<domain type='kvm' id='3'>
  <name>tester2</name>
  <uuid>525df34f-4369-4b56-8a0d-7cfc2d03438f</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-rhel7.6.0'>hvm</type>
    <kernel>/var/lib/libvirt/boot/virtinst-pmb2j61h-vmlinuz</kernel>
    <initrd>/var/lib/libvirt/boot/virtinst-eadatkr7-initrd.img</initrd>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state='off'/>
  </features>
  <cpu mode='custom' match='exact' check='full'>
    <model fallback='forbid'>Haswell-noTSX-IBRS</model>
    <vendor>Intel</vendor>
    <feature policy='require' name='vme'/>
    <feature policy='require' name='ss'/>
    <feature policy='require' name='vmx'/>
    <feature policy='require' name='f16c'/>
    <feature policy='require' name='rdrand'/>
    <feature policy='require' name='hypervisor'/>
    <feature policy='require' name='arat'/>
    <feature policy='require' name='tsc_adjust'/>
    <feature policy='require' name='umip'/>
    <feature policy='require' name='md-clear'/>
    <feature policy='require' name='stibp'/>
    <feature policy='require' name='arch-capabilities'/>
    <feature policy='require' name='ssbd'/>
    <feature policy='require' name='xsaveopt'/>
    <feature policy='require' name='pdpe1gb'/>
    <feature policy='require' name='abm'/>
    <feature policy='require' name='skip-l1dfl-vmentry'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <pm>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
  </pm>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/libvirt/images/tester2.qcow2'/>
      <backingStore/>
      <target dev='hda' bus='ide'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:7a:5d:ce'/>
      <source network='default' bridge='virbr0'/>
      <target dev='vnet0'/>
      <model type='e1000'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
      <listen type='address' address='127.0.0.1'/>
      <image compression='off'/>
    </graphics>
    <sound model='ich6'>
      <alias name='sound0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <redirdev bus='usb' type='spicevmc'>
      <alias name='redir0'/>
      <address type='usb' bus='0' port='2'/>
    </redirdev>
    <redirdev bus='usb' type='spicevmc'>
      <alias name='redir1'/>
      <address type='usb' bus='0' port='3'/>
    </redirdev>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='dynamic' model='selinux' relabel='yes'>
    <label>system_u:system_r:svirt_t:s0:c81,c276</label>
    <imagelabel>system_u:object_r:svirt_image_t:s0:c81,c276</imagelabel>
  </seclabel>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+107:+107</label>
    <imagelabel>+107:+107</imagelabel>
  </seclabel>
</domain>

[Mon, 06 Apr 2020 14:11:42 virt-install 11673] DEBUG (installertreemedia:274) Removing /var/lib/libvirt/boot/virtinst-pmb2j61h-vmlinuz
[Mon, 06 Apr 2020 14:11:42 virt-install 11673] DEBUG (installertreemedia:274) Removing /var/lib/libvirt/boot/virtinst-eadatkr7-initrd.img
[Mon, 06 Apr 2020 14:11:42 virt-install 11673] DEBUG (virt-install:705) Domain state after install: 1
[Mon, 06 Apr 2020 14:11:42 virt-install 11673] DEBUG (cli:272) Domain installation still in progress.
Domain installation still in progress.
[Mon, 06 Apr 2020 14:11:42 virt-install 11673] DEBUG (cli:272) Waiting for installation to complete.
Waiting for installation to complete.
[Mon, 06 Apr 2020 14:12:19 virt-manager 10859] DEBUG (connection:749) storage pool refresh event: pool=Downloads
[Mon, 06 Apr 2020 14:12:19 virt-manager 10859] DEBUG (connection:749) storage pool refresh event: pool=boot-scratch
[Mon, 06 Apr 2020 14:12:19 virt-manager 10859] DEBUG (connection:749) storage pool refresh event: pool=default
[Mon, 06 Apr 2020 14:12:19 virt-manager 10859] DEBUG (connection:749) storage pool refresh event: pool=qemu

[root@192-168-0-104 ~]# 
led to the same dracut-initqueue
-- warning - Cannot boot
Starting virtual setup console
Starting dracut emergency shell.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: virt-install using --location http://localhost/inst doesn't complete

Post by TrevorH » 2020/04/06 11:24:49

noautoconsole?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

PortoFino
Posts: 16
Joined: 2020/04/02 17:49:25

Re: virt-install using --location http://localhost/inst doesn't complete

Post by PortoFino » 2020/04/06 13:56:38

hi Trevor, Aks,

thanks for time on this.

Surely, I'll go on and explore those options. My goal is to use virt-install with --location http://localhost/inst or other public http(s) mirror in order to deploy a minimal (or complete) functional Centos 8 guest exactly like I did from the 1st try using --cdrom /path/to/iso.

So far:
1) I have to explore --noautoconsole or --graphics none and then to connect to the guest (with 'virsh console guest' to complete the installation - X11, packages, etc, users..)
2) I've connected with 'virsh console guest' and a 'telnet like' console has opened to me; other options to manipulate that guest have to be seen/understood
3) probably not so important/relevant now with Centos 8, once I did the same command some years ago on Centos 6

Code: Select all

virt-install --name outsider1 --location="http://192.168.1.21/inst/" -r 1024 --disk /var/lib/libvirt/images/out.img,size=15 -x "ks=http://192.168.1.21/inst/ks50out.cfg" -w network=100n &
has always worked smoothly.
Maybe -x option to be checked or -w (network) too. Or (most probably) being a different product 8 versus 6, the analogies may not lead to a solution.
see you

PortoFino
Posts: 16
Joined: 2020/04/02 17:49:25

Re: virt-install using --location http://localhost/inst doesn't complete

Post by PortoFino » 2020/04/08 08:46:11

as a comparison, I would not pay so much attention to the --debug console errors as they are identical for a good session as well as for a bad session, here you are. The issue is somewhere else. Not using <code></code> for easier comparison


=== a good session (with --cdrom /path/to/iso)

[root@192-168-0-101 admin]# virt-install --name tester2 --cdrom /home/admin/Downloads/CentOS-8.1.1911-x86_64-dvd1.iso --memory 1024 --disk path=/var/lib/libvirt/images/tester2.qcow2,size=20 --network default --os-variant rhel8.1 &
[1] 19496
[root@192-168-0-101 admin]#
Starting install...
Allocating 'tester2.qcow2'                                                                                       |  20 GB  00:00:00    
No protocol specified

(virt-viewer:19675): dbind-WARNING **: 10:31:02.385: Could not open X display

(virt-viewer:19675): GLib-GIO-CRITICAL **: 10:31:02.413: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
No protocol specified
xcb_connection_has_error() returned true
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)

(virt-viewer:19675): GSpice-WARNING **: 10:31:02.522: PulseAudio context failed Connection refused

(virt-viewer:19675): GSpice-WARNING **: 10:31:02.522: pa_context_connect() failed: Connection refused

(virt-viewer:19675): GSpice-WARNING **: 10:31:02.533: Bad pulsesrc version 1.14.0, lowering its rank

(virt-viewer:19675): GSpice-WARNING **: 10:31:02.636: Could not create org.gnome.SessionManager dbus proxy: The connection is closed

(virt-viewer:19675): GSpice-WARNING **: 10:31:02.636: Warning no automount-inhibiting implementation available

[root@192-168-0-101 admin]# Domain installation still in progress. You can reconnect to
the console to complete the installation process.


=== a bad session (using --location http://localhost/inst) This terminates on the virt-viewer window when dracut timeous and the console says: could not boot (initial issue)

[root@192-168-0-101 admin]# !976
virt-install --name tester2 --location http://localhost/inst --memory 1024 --disk path=/var/lib/libvirt/images/tester2.qcow2,size=20 --network default --os-variant rhel8.1 &
[1] 19867
[root@192-168-0-101 admin]#
Starting install...
Retrieving file vmlinuz...                                                                                       | 7.7 MB  00:00:00    
Retrieving file initrd.img...                                                                                    |  59 MB  00:00:00    
Allocating 'tester2.qcow2'                                                                                       |  20 GB  00:00:00    
No protocol specified

(virt-viewer:20030): dbind-WARNING **: 10:34:21.551: Could not open X display

(virt-viewer:20030): GLib-GIO-CRITICAL **: 10:34:21.574: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
No protocol specified
xcb_connection_has_error() returned true
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)

(virt-viewer:20030): GSpice-WARNING **: 10:34:21.630: PulseAudio context failed Connection refused

(virt-viewer:20030): GSpice-WARNING **: 10:34:21.630: pa_context_connect() failed: Connection refused

(virt-viewer:20030): GSpice-WARNING **: 10:34:21.637: Bad pulsesrc version 1.14.0, lowering its rank

(virt-viewer:20030): GSpice-WARNING **: 10:34:21.742: Could not create org.gnome.SessionManager dbus proxy: The connection is closed

(virt-viewer:20030): GSpice-WARNING **: 10:34:21.742: Warning no automount-inhibiting implementation available

(virt-viewer:20030): GLib-GObject-WARNING **: 10:34:29.117: value "64" of type 'gint' is invalid or out of range for property 'desktop-width' of type 'gint'

(virt-viewer:20030): GLib-GObject-WARNING **: 10:34:29.117: value "64" of type 'gint' is invalid or out of range for property 'desktop-height' of type 'gint'

[root@192-168-0-101 admin]# Domain installation still in progress. You can reconnect to
the console to complete the installation process.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: virt-install using --location http://localhost/inst doesn't complete

Post by TrevorH » 2020/04/08 09:14:36

You need 2GB RAM to install CentOS 8.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply