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 &
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 &
[ 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