[libvirt-users] virt-install on powerpc64 issues

Alexey Kardashevskiy aik at ozlabs.ru
Thu Apr 11 14:04:06 UTC 2013


On 04/11/2013 11:33 PM, Martin Kletzander wrote:
> On 04/11/2013 03:16 PM, Alexey Kardashevskiy wrote:
>> On 04/11/2013 11:10 PM, Martin Kletzander wrote:
>>> On 04/11/2013 02:41 PM, Alexey Kardashevskiy wrote:
>>>> On 04/11/2013 09:34 PM, Martin Kletzander wrote:
>>>>> On 04/10/2013 07:15 AM, Alexey Kardashevskiy wrote:
>>>>>> Hi!
>>>>>>
>>>>>> I am trying to setup a guest using virt-install script:
>>>>>>
>>>>>> /usr/bin/virt-install -n fc18guest5 -r 1024 \ --disk
>>>>>> path=/home/aik/virtimg/fc18guest,size=8 \ -c
>>>>>> /home/aik/virtimg/Fedora-18-ppc64-DVD.iso \ --video vga --arch=ppc64
>>>>>> -d --machine=pseries
>>>>>>
>>>>>> And it fails. I could not find any relevant log in /var/log/libvirt/
>>>>>> so
>>>>>
>>>>> It should be stored in '/var/log/libvirt/qemu/fc18guest5.log'.  If
>>>>> there's nothing related, look for errors in
>>>>> '/var/log/libvirt/libvirtd.log'.
>>>>
>>>>
>>>> None of them were created on my test machine.
>>>>
>>>
>>> Both for this and the last question.  I missed the info, you are doing:
>>>
>>> virsh -c qemu:///system list
>>>
>>> which is connecting to the system daemon, but you are adding no such
>>> option for virt-install, so it probably connects to qemu:///session.
>>
>> May be. Either way, I added -c qemu:///system, nothing changed.
>>
>
> So you have no machines when using 'virsh -c qemu:///system list --all'
> and no machines when using 'virsh -c qemu:///session list --all' under
> the same user as virt-install was ran under?


oops. Misunderstood. Sorry. "qemu:///session" shows the list. What is the 
difference (shortly if possible)? Two different daemons?

Ok. This problem is solved now :) The long command line problem is still there.


>>>>>> I simply hacked /usr/local/bin/qemu-system-ppc64 to print all the
>>>>>> parameters passed into it. So I got the command line (below, after
>>>>>> the second question) where the "-device scsi-cd" parameter is cut in
>>>>>> a middle so QEMU fails to start. 788 chars long - is there a limit?
>>>>>>
>>>>>
>>>>> I don't think it has anything to do with the fact that there is a
>>>>> newline between '-device' and 'scsi-cd'.  That's just debug output of
>>>>> virt-install.
>>>>
>>>>
>>>> There is no new line. I added printing of every parameter in
>>>> qemu-system-ppc64 and this is exactly what qemu process gets.
>>>>.
>>>
>>> Oh, so that's a next parameter, I don't see anything cut in the middle.
>>
>>
>> There are 2 scsi drives - one is HDD, the other one is DVD.
>>
>> HDD is:
>> -device
>> scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=2
>> -drive
>> file=/home/aik/virtimg/Fedora-18-ppc64-DVD.iso,if=none,id=drive-scsi0-0-0-1,readonly=on,format=raw
>>
>>
>> DVD is:
>> -device scsi-cd,bus=scsi0.0,ch
>>
>> The second one is cut, "ch" is not a valid parameterer name. Furthermore
>> when I add a machine with "virsh -c qemu:///system create lalala.xml"
>> (and I have boith scsi devices in that xml), both parameters are passed
>> to QEMU as is and it all works.
>>
>>
>>
>>>>>> The second question is - where does virt-install store those xmls? I
>>>>>> have to choose a new name for a machine even if virt-install failed,
>>>>>> in the example it is "fc18guest5" (5 at the end). "virsh -c
>>>>>> qemu:///system list" prints an empty list with no domains.
>>>>>>
>>>>>
>>>>> Command 'virsh list' (by default) lists only running domains, try
>>>>> adding '--all' as a parameter.
>>>>
>>>>
>>>> Still prints nothing.
>>>>
>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> /usr/local/bin/qemu-system-ppc64 -name fc18guest5 -S -M pseries
>>>>>> -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -uuid
>>>>>> 71f8b17f-ca48-80fe-db58-4d933c66fe2d -no-user-config -nodefaults
>>>>>> -chardev
>>>>>> socket,id=charmonitor,path=/home/aik/.config/libvirt/qemu/lib/fc18guest5.monitor,server,nowait
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc
>>>>>> -no-reboot -no-shutdown -device pci-ohci,id=usb,bus=pci,addr=0x1.0x2
>>>>>> -device spapr-vscsi,id=scsi0,reg=0x2000 -drive
>>>>>> file=/home/aik/virtimg/fc18guest,if=none,id=drive-scsi0-0-0-0,format=raw
>>>>>>
>>>>>>
>>>>>>
>>>> -device
>>>>>> scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=2
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> -drive
>>>>>> file=/home/aik/virtimg/Fedora-18-ppc64-DVD.iso,if=none,id=drive-scsi0-0-0-1,readonly=on,format=raw
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> -device scsi-cd,bus=scsi0.0,ch
>>>>>>
>>>>>>
>>>>>>
>>>>>> The full log is here:
>>>>>>
>>>>>>
>>>>>> [aik at vpl2 ~]$ ./start_installation.sh ++ /usr/bin/virt-install -n
>>>>>> fc18guest5 -r 1024 --disk path=/home/aik/virtimg/fc18guest,size=8 -c
>>>>>> /home/aik/virtimg/Fedora-18-ppc64-DVD.iso --video vga --arch=ppc64 -d
>>>>>> --machine=pseries [Wed, 10 Apr 2013 15:06:10 virt-install 9880] DEBUG
>>>>>> (cli:221) Launched with command line: /usr/bin/virt-install -n
>>>>>> fc18guest5 -r 1024 --disk path=/home/aik/virtimg/fc18guest,size=8 -c
>>>>>> /home/aik/virtimg/Fedora-18-ppc64-DVD.iso --video vga --arch=ppc64 -d
>>>>>> --machine=pseries [Wed, 10 Apr 2013 15:06:10 virt-install 9880] DEBUG
>>>>>> (cli:326) Requesting libvirt URI default [Wed, 10 Apr 2013 15:06:12
>>>>>> virt-install 9880] DEBUG (cli:328) Received libvirt URI
>>>>>> qemu:///session [Wed, 10 Apr 2013 15:06:12 virt-install 9880] DEBUG
>>>>>> (virt-install:259) Requesting virt method 'default', hv type
>>>>>> 'default'. [Wed, 10 Apr 2013 15:06:12 virt-install 9880] DEBUG
>>>>>> (virt-install:469) Received virt method 'hvm' [Wed, 10 Apr 2013
>>>>>> 15:06:12 virt-install 9880] DEBUG (virt-install:470) Hypervisor name
>>>>>> is 'kvm' [Wed, 10 Apr 2013 15:06:12 virt-install 9880] DEBUG (cli:935)
>>>>>> DISPLAY is set: graphics defaulting to VNC. [Wed, 10 Apr 2013 15:06:12
>>>>>> virt-install 9880] DEBUG (cli:953) --graphics compat generated: vnc
>>>>>> [Wed, 10 Apr 2013 15:06:12 virt-install 9880] DEBUG
>>>>>> (DistroInstaller:209) DistroInstaller location is a local file/path:
>>>>>> /home/aik/virtimg/Fedora-18-ppc64-DVD.iso [Wed, 10 Apr 2013 15:06:12
>>>>>> virt-install 9880] DEBUG (virt-install:626) Guest.has_install_phase:
>>>>>> True
>>>>>>
>>>>>> Starting install... [Wed, 10 Apr 2013 15:06:12 virt-install 9880]
>>>>>> DEBUG (Guest:1296) Generated install XML: <domain type='kvm'>
>>>>>> <name>fc18guest5</name>
>>>>>> <uuid>56b64ac6-9596-6e8e-5321-4fc583960065</uuid>
>>>>>> <memory>1048576</memory> <currentMemory>1048576</currentMemory>
>>>>>> <vcpu>1</vcpu> <os> <type arch='ppc64' machine='pseries'>hvm</type>
>>>>>> <boot dev='cdrom'/> <boot dev='hd'/> </os> <features>
>>>>>> <acpi/><apic/><pae/> </features> <clock offset="utc"/>
>>>>>> <on_poweroff>destroy</on_poweroff> <on_reboot>destroy</on_reboot>
>>>>>> <on_crash>destroy</on_crash> <devices>
>>>>>> <emulator>/usr/local/bin/qemu-system-ppc64</emulator> <disk
>>>>>> type='file' device='disk'> <driver name='qemu'/> <source
>>>>>> file='/home/aik/virtimg/fc18guest'/> <target dev='sda' bus='scsi'/>
>>>>>> </disk> <disk type='file' device='cdrom'> <driver name='qemu'/>
>>>>>> <source file='/home/aik/virtimg/Fedora-18-ppc64-DVD.iso'/> <target
>>>>>> dev='sdb' bus='scsi'/> <readonly/> </disk> <interface type='user'>
>>>>>> <mac address='52:54:00:ca:ed:7a'/> </interface> <input type='mouse'
>>>>>> bus='ps2'/> <graphics type='vnc' port='-1'/> <console type='pty'/>
>>>>>> <video> <model type='vga'/> </video> </devices> </domain>
>>>>>>
>>>>>> [Wed, 10 Apr 2013 15:06:12 virt-install 9880] DEBUG (Guest:1297)
>>>>>> Generated boot XML: <domain type='kvm'> <name>fc18guest5</name>
>>>>>> <uuid>56b64ac6-9596-6e8e-5321-4fc583960065</uuid>
>>>>>> <memory>1048576</memory> <currentMemory>1048576</currentMemory>
>>>>>> <vcpu>1</vcpu> <os> <type arch='ppc64' machine='pseries'>hvm</type>
>>>>>> <boot dev='hd'/> </os> <features> <acpi/><apic/><pae/> </features>
>>>>>> <clock offset="utc"/> <on_poweroff>destroy</on_poweroff>
>>>>>> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices>
>>>>>> <emulator>/usr/local/bin/qemu-system-ppc64</emulator> <disk
>>>>>> type='file' device='disk'> <driver name='qemu'/> <source
>>>>>> file='/home/aik/virtimg/fc18guest'/> <target dev='sda' bus='scsi'/>
>>>>>> </disk> <disk type='block' device='cdrom'> <target dev='sdb'
>>>>>> bus='scsi'/> <readonly/> </disk> <interface type='user'> <mac
>>>>>> address='52:54:00:ca:ed:7a'/> </interface> <input type='mouse'
>>>>>> bus='ps2'/> <graphics type='vnc' port='-1'/> <console type='pty'/>
>>>>>> <video> <model type='vga'/> </video> </devices> </domain>
>>>>>>
>>>>>> [Wed, 10 Apr 2013 15:06:12 virt-install 9880] ERROR (cli:439)
>>>>>> internal error process exited while connecting to monitor: char device
>>>>>> redirected to /dev/pts/4 (label charserial0)
>>>>>>
>>>>>>
>>>>>>
>>>>>> [0]/usr/local/bin/qemu-system-ppc64 [1]-name [2]fc18guest5 [3]-S
>>>>>> [4]-M [5]pseries [6]-enable-kvm [7]-m [8]1024 [9]-smp
>>>>>> [10]1,sockets=1,cores=1,threads=1 [11]-uuid
>>>>>> [12]56b64ac6-9596-6e8e-5321-4fc583960065 [13]-no-user-config
>>>>>> [14]-nodefaults [15]-chardev
>>>>>> [16]socket,id=charmonitor,path=/home/aik/.config/libvirt/qemu/lib/fc18guest5.monitor,server,nowait
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> [17]-mon [18]chardev=charmonitor,id=monitor,mode=control [19]-rtc
>>>>>> [20]base=utc [21]-no-reboot [22]-no-shutdown [23]-device
>>>>>> [24]pci-ohci,id=usb,bus=pci,addr=0x1.0x2 [25]-device
>>>>>> [26]spapr-vscsi,id=scsi0,reg=0x2000 [27]-drive
>>>>>> [28]file=/home/aik/virtimg/fc18guest,if=none,id=drive-scsi0-0-0-0,format=raw
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> [29]-device
>>>>>> [30]scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=2
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> [31]-drive
>>>>>> [32]file=/home/aik/virtimg/Fedora-18-ppc64-DVD.iso,if=none,id=drive-scsi0-0-0-1,readonly=on,format=raw
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> [33]-device [34]scsi-cd,bus=scsi0.0,ch
>>>>>> [Wed, 10 Apr 2013 15:06:12 virt-install 9880] DEBUG (cli:442)
>>>>>> Traceback (most recent call last): File "/usr/bin/virt-install", line
>>>>>> 636, in start_install noboot=options.noreboot) File
>>>>>> "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1249, in
>>>>>> start_install noboot) File
>>>>>> "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1317, in
>>>>>> _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0)
>>>>>> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2775, in
>>>>>> createLinux if ret is None:raise libvirtError('virDomainCreateLinux()
>>>>>> failed', conn=self) libvirtError: internal error process exited while
>>>>>> connecting to monitor: char device redirected to /dev/pts/4 (label
>>>>>> charserial0)
>>>>>>
>>>>>>
>>>>>>
>>>>>> [0]/usr/local/bin/qemu-system-ppc64 [1]-name [2]fc18guest5 [3]-S
>>>>>> [4]-M [5]pseries [6]-enable-kvm [7]-m [8]1024 [9]-smp
>>>>>> [10]1,sockets=1,cores=1,threads=1 [11]-uuid
>>>>>> [12]56b64ac6-9596-6e8e-5321-4fc583960065 [13]-no-user-config
>>>>>> [14]-nodefaults [15]-chardev
>>>>>> [16]socket,id=charmonitor,path=/home/aik/.config/libvirt/qemu/lib/fc18guest5.monitor,server,nowait
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> [17]-mon [18]chardev=charmonitor,id=monitor,mode=control [19]-rtc
>>>>>> [20]base=utc [21]-no-reboot [22]-no-shutdown [23]-device
>>>>>> [24]pci-ohci,id=usb,bus=pci,addr=0x1.0x2 [25]-device
>>>>>> [26]spapr-vscsi,id=scsi0,reg=0x2000 [27]-drive
>>>>>> [28]file=/home/aik/virtimg/fc18guest,if=none,id=drive-scsi0-0-0-0,format=raw
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> [29]-device
>>>>>> [30]scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=2
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> [31]-drive
>>>>>> [32]file=/home/aik/virtimg/Fedora-18-ppc64-DVD.iso,if=none,id=drive-scsi0-0-0-1,readonly=on,format=raw
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> [33]-device [34]scsi-cd,bus=scsi0.0,ch
>>>>>> [Wed, 10 Apr 2013 15:06:12 virt-install 9880] DEBUG (cli:451) Domain
>>>>>> installation does not appear to have been successful. If it was, you
>>>>>> can restart your domain by running: virsh --connect qemu:///session
>>>>>> start fc18guest5 otherwise, please restart your installation. Domain
>>>>>> installation does not appear to have been successful. If it was, you
>>>>>> can restart your domain by running: virsh --connect qemu:///session
>>>>>> start fc18guest5 otherwise, please restart your installation.
>>>>>>
>>>>>> [aik at vpl2 ~]$ virsh -c qemu:///system list Id    Name
>>>>>> State ----------------------------------------------------
>>>>>>
>>>>>> [aik at vpl2 ~]$
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>


-- 
Alexey




More information about the libvirt-users mailing list