I''ve got a copy of Solaris Express on DVD, installed it and tried to create a Xen guest domain using virt-manager. I ran into the following road block: - attaching storage space did not allow me to add a Normal Disk Partition. /dev/dsk/c0t2d0p0, /dev/rdsk/c0t2d0s0, etc, all got rejected with an error (see below). What did work was saying /dev/rdsk/c0t2d0p0 was the File Location of the virtual disk, but that fails later... The errors coming out of virt-manager were: Traceback(most recent call last): File "/usr/share/virt-manager/virtManager/create.py" line 327, in forward if(self.validate(notebook.get_current_page() != True): File "/usr/share/virt-manager/virtManager/create.py" line 855, in validate d = virtinst.VirtualDisk(self.get_config_disk_image(), self.get_config_disk_size() / 1024.0, spare = self.is_sparse_file()) TypeError: unsupported operand type(s) for /: ''NoneType'' and ''float'' Darren
Darren Reed wrote:> I''ve got a copy of Solaris Express on DVD, installed it and tried to > create a Xen guest domain using virt-manager. > > I ran into the following road block: > > - attaching storage space did not allow me to add a Normal Disk > Partition. /dev/dsk/c0t2d0p0, /dev/rdsk/c0t2d0s0, etc, all got rejected > with an error (see below). What did work was saying /dev/rdsk/c0t2d0p0 > was the File Location of the virtual disk, but that fails later... > > The errors coming out of virt-manager were: > Traceback(most recent call last): > File "/usr/share/virt-manager/virtManager/create.py" line 327, in forward > if(self.validate(notebook.get_current_page() != True): > File "/usr/share/virt-manager/virtManager/create.py" line 855, in validate > d = virtinst.VirtualDisk(self.get_config_disk_image(), > self.get_config_disk_size() / 1024.0, spare = self.is_sparse_file()) > TypeError: unsupported operand type(s) for /: ''NoneType'' and ''float''virt-manager doesn''t work very well in the current bits. The jds folks should be pushing a newer version relatively soon. What are you trying to install? I can give you the virt-install line for that.... MRJ
On 07/07/09 06:10, Mark Johnson wrote:> > > Darren Reed wrote: >> I''ve got a copy of Solaris Express on DVD, installed it and tried to >> create a Xen guest domain using virt-manager. >> >> I ran into the following road block: >> >> - attaching storage space did not allow me to add a Normal Disk >> Partition. /dev/dsk/c0t2d0p0, /dev/rdsk/c0t2d0s0, etc, all got >> rejected with an error (see below). What did work was saying >> /dev/rdsk/c0t2d0p0 was the File Location of the virtual disk, but >> that fails later... >> >> The errors coming out of virt-manager were: >> Traceback(most recent call last): >> File "/usr/share/virt-manager/virtManager/create.py" line 327, in >> forward >> if(self.validate(notebook.get_current_page() != True): >> File "/usr/share/virt-manager/virtManager/create.py" line 855, in >> validate >> d = virtinst.VirtualDisk(self.get_config_disk_image(), >> self.get_config_disk_size() / 1024.0, spare = self.is_sparse_file()) >> TypeError: unsupported operand type(s) for /: ''NoneType'' and ''float'' > > virt-manager doesn''t work very well in the current bits. The jds folks > should be pushing a newer version relatively soon. > > What are you trying to install? I can give you the virt-install line > for that....What I''ve come up with so far is: virt-install --paravirt --name dom1 --ram 6144 --nographics \ --os-type=solaris \ --network bridge=e1000g0,capped-bandwidth=200M \ --disk path=/dev/dsk/c0t1d0s4,driver=phy --location /isos/osol-200906.iso ... what I''m not happy about: location - I want to use a DVD disc in my DVD drive, not an ISO image disk path - how do I tell it to use an entire disk (or fdisk partition), not just a slice? cpu - I want to set the limit to 2 CPUs. Darren
>virt-manager doesn''t work very well in the current bits. The jds folks >should be pushing a newer version relatively soon.Hi Mark, Do you know approximately when ? Thanks, -- This message posted from opensolaris.org
Alex Gor wrote:>> virt-manager doesn''t work very well in the current bits. The jds folks >> should be pushing a newer version relatively soon. > > Hi Mark, > > Do you know approximately when ?soon? :-) Honestly, it should be any time now... But I have been saying that for the last few weeks. MRJ
Darren Reed wrote:> On 07/07/09 06:10, Mark Johnson wrote: > > What I''ve come up with so far is: > > > virt-install --paravirt --name dom1 --ram 6144 --nographics \ > --os-type=solaris \ > --network bridge=e1000g0,capped-bandwidth=200M \ > --disk path=/dev/dsk/c0t1d0s4,driver=phy > --location /isos/osol-200906.iso > > > ... what I''m not happy about: > location - I want to use a DVD disc in my DVD drive, not an ISO image > disk path - how do I tell it to use an entire disk (or fdisk partition), > not just a slice? > cpu - I want to set the limit to 2 CPUs. >I assume your using stock bits? What you have above contains params which are part of a newer virt-install which is being putback shortly. virt-install --help For the disk and cdrom path, you should use p0. e.g. here''s using a cdrom, with 2 vcpus which I just tested on stock b118 bits (don''t have an extra disk I can install onto on this machine) -bash-3.2# virt-install -p -n dom --vcpus=2 -r 800 --nographics --noautoconsole -f /export/disk0 -s 8 -l /dev/dsk/c1t0d0p0 so a -f /dev/dsk/c0t1d0p0 should do it for the disk. Just don''t specify the wrong disk ;-) MRJ
Mark Johnson wrote:> > > Darren Reed wrote: >> On 07/07/09 06:10, Mark Johnson wrote: >> >> What I''ve come up with so far is: >> >> >> virt-install --paravirt --name dom1 --ram 6144 --nographics \ >> --os-type=solaris \ >> --network bridge=e1000g0,capped-bandwidth=200M \ >> --disk path=/dev/dsk/c0t1d0s4,driver=phy >> --location /isos/osol-200906.iso >> >> >> ... what I''m not happy about: >> location - I want to use a DVD disc in my DVD drive, not an ISO image >> disk path - how do I tell it to use an entire disk (or fdisk partition), >> not just a slice? >> cpu - I want to set the limit to 2 CPUs. >> > > I assume your using stock bits? What you have above contains > params which are part of a newer virt-install which is being > putback shortly. > > virt-install --help > > > For the disk and cdrom path, you should use p0. > e.g. here''s using a cdrom, with 2 vcpus which I > just tested on stock b118 bits (don''t have an extra > disk I can install onto on this machine) > -bash-3.2# virt-install -p -n dom --vcpus=2 -r 800 --nographics > --noautoconsole -f /export/disk0 -s 8 -l /dev/dsk/c1t0d0p0 > > so a -f /dev/dsk/c0t1d0p0 should do it for the disk. Just don''t > specify the wrong > disk ;-)And that''s all working as I expected. The only part that was a bit weird was starting it up the first time to see what it would do, stopping it and wanting to recreate the vm. There doesn''t seem to be a virt-destroy and "xm destroy" didn''t undo everything that virt-install did the first time, so I had to use virt-manager to clean up the old vm. Looking in virt-manager I can see that I can manage RAM and CPU... what about disk? Or do I need to wait until it''s shutdown before I can do disk? Darren