[virt-tools-list] virt-install 0.400-3: cannot install
Gerry Reno
greno at verizon.net
Sun Nov 22 18:38:35 UTC 2009
Gerry Reno wrote:
> Cole Robinson wrote:
>> On 11/22/2009 01:12 AM, Gerry Reno wrote:
>>
>>> I'm trying to do a text-based install using virt-install 0.400-3 on a
>>> ubuntu server 9.10 but it is refusing to install. Here is the form of
>>> the command I'm using:
>>>
>>> $ sudo -s
>>> # virt-install -n "DOMAIN-1" --vcpus=4 --ram=2048 --disk
>>> path=/var/lib/libvirt/images/DOMAIN-1.img
>>> --location=http://mirrors.us.kernel.org/ubuntu-releases/karmic/ubuntu-9.10-server-amd64.iso
>>>
>>> --accelerate --network=bridge:br0 --nographics
>>> --extra-args="console=tty0 console=ttyS0,115200"
>>>
>>> I've tried local, nfs, http for locations and it either says its not an
>>> installable distribution or I get a ValueError: Invalid install
>>> location. But I can wget the iso with no problem using the same url.
>>>
>>> Can anyone point me to what is wrong with my command line?
>>>
>>>
>>
>> --location needs to point to an install tree, not an iso. You should
>> be able
>> to replace --location with --cdrom to make things work. This is
>> described in
>> the virt-install man page.
>>
>> HTH,
>> Cole
>>
>>
> Ok, I just tried it replacing --location with --cdrom and it gives me
> the exact same ValueError: Invalid install location Opening URL
> http://....
>
> So I nfs mounted the iso across the network and then passed the
> mountpoint to --cdrom and this at least creates the domain but then it
> just sits there at "Escape is ^]" and does not do anything else.
>
> Is there something wrong with my console args?
>
> -Gerry
>
Here is what the domain xml looks like:
<domain type='kvm' id='7'>
<name>DOMAIN-1</name>
<uuid>7ed78124-4d65-367c-cb0d-81ecf1bf908c</uuid>
<memory>2097152</memory>
<currentMemory>2097152</currentMemory>
<vcpu>4</vcpu>
<os>
<type arch='x86_64' machine='pc-0.11'>hvm</type>
<boot dev='cdrom'/>
</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/bin/kvm</emulator>
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/DOMAIN-1.img'/>
<target dev='hda' bus='ide'/>
</disk>
<disk type='file' device='cdrom'>
<source file='/mnt/iso/ubuntu/9.10/ubuntu-9.10-server-amd64.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='bridge'>
<mac address='54:52:00:68:1d:53'/>
<source bridge='br0'/>
<target dev='vnet0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/1'/>
<target port='0'/>
</serial>
<console type='pty' tty='/dev/pts/1'>
<source path='/dev/pts/1'/>
<target port='0'/>
</console>
</devices>
<seclabel type='dynamic' model='apparmor'>
<label>libvirt-7ed78124-4d65-367c-cb0d-81ecf1bf908c</label>
<imagelabel>libvirt-7ed78124-4d65-367c-cb0d-81ecf1bf908c</imagelabel>
</seclabel>
</domain>
-Gerry
More information about the virt-tools-list
mailing list