>>> On 4/9/2015 at 02:11 PM, <[email protected]> wrote: 

> 
> On Thu, Apr 9, 2015, at 12:50 PM, Charles Arnold wrote:
>> > Did `zypper in vm-install` miss some dependencies?
>> 
>> By default vm-install will use libvirt to create VMs.  Using the '--use-xl' 
>> flag 
> when
>> starting vm-install will ignore libvirt and just use Xen's 'xl' toolstack 
> directly.
>> 
>> Also when you were asked,
>> 
>> Please specify the type of virtualized graphics hardware.
>>   1: No Graphics Support
>>   2: Paravirtualized Graphics Adapter
>> [2] > 
>> 
>> You should select '1' here and it won't start a graphical installation 
> (should run in the
>> same window as vm-install is running).
> 
> vm-install --use-xl
>       Gathering settings...                                                   
>      
>                            
>                                                                               
>      
>                            
>       Please specify the type of operating system that will run within the 
> virtual 
>                            
>       machine.  This defines many defaults, and helps decide how to start     
>      
>                            
>       paravirtualized operating systems.                                      
>      
>                            
>       Press 'q' or the Escape key to exit.                                    
>      
>                            
>         1: Novell Open Enterprise Server 2 (Linux)                            
>      
>                            
>         2: Novell Open Enterprise Server 2 (NetWare)                          
>      
>                            
>         3: Novell Open Enterprise Server 11                                   
>      
>                            
>         4: Other operating system                                             
>      
>                            
>         5: PXE                                                                
>      
>                            
>         6: RedHat (other)                                                     
>      
>                            
>         7: RedHat Enterprise Linux 3                                          
>      
>                            
>         8: RedHat Enterprise Linux 4                                          
>      
>                            
>         9: RedHat Enterprise Linux 5                                          
>      
>                            
>        10: RedHat Enterprise Linux 6                                          
>      
>                            
>        11: RedHat Enterprise Linux 7                                          
>      
>                            
>        12: Relax and Recover                                                  
>      
>                            
>        13: SUSE (other)                                                       
>      
>                            
>        14: SUSE Linux Enterprise Desktop 10                                   
>      
>                            
>        15: SUSE Linux Enterprise Desktop 11                                   
>      
>                            
>        16: SUSE Linux Enterprise Desktop 12                                   
>      
>                            
>        17: SUSE Linux Enterprise Server 8                                     
>      
>                            
>        18: SUSE Linux Enterprise Server 9                                     
>      
>                            
>        19: SUSE Linux Enterprise Server 10                                    
>      
>                            
>        20: SUSE Linux Enterprise Server 11                                    
>      
>                            
>        21: SUSE Linux Enterprise Server 12                                    
>      
>                            
>        22: Solaris 9 and older                                                
>      
>                            
>        23: Solaris 10                                                         
>      
>                            
>        24: Ubuntu 10 (Lucid Lynx, Maverick Meerkat)                           
>      
>                            
>        25: Ubuntu 11 (Natty Narwhal, Oneiric Ocelot)
>        26: Ubuntu 12 (Precise Pangolin)
>        27: Ubuntu (other)
>        28: Windows 8
>        29: Windows 8 (x64)
>        30: Windows (other)
>        31: Windows (other, x64)
>        32: Windows NT
>        33: Windows Server 2008
>        34: Windows Server 2008 (x64)
>        35: Windows Server 2012 (x64)
>        36: Windows Vista, Windows 7
>        37: Windows Vista, Windows 7 (x64)
>        38: Windows XP, 2000, 2003
>        39: Windows XP, 2003 (x64)
>        40: openSUSE
>        41: openSUSE 11
>        42: openSUSE 12
>        43: openSUSE 13
>       [43] > 
> 
>       Virtual machines can use paravirtualization or full virtualization. 
>       Paravirtualization is faster but requires operating system support.  
> Full
>       virtualization runs a broader range of operating systems but requires 
> hardware
>       support.  Which do you prefer?
>         1: Full virtualization
>         2: Paravirtualization
>       [2] > 
> 
>       PXE Boot
>       (Y / N) [N] > 
>       Please choose a name for the virtual machine.
>       [opensuse13] > 
> 
>       Description > 
> 
>       Specify the amount of memory and number of processors to allocate for 
> the 
> VM.
>       Initial Memory [768] > 
>       Maximum Memory [768] > 
>       Virtual Processors [1] > 
> 
>       Please specify the type of virtualized graphics hardware.
>         1: No Graphics Support
>         2: Paravirtualized Graphics Adapter
>       [2] > 1     <------------------------------------------------
> 
>       Virtual Disks:
>         (None)
>       Do you want to add another virtual disk?
>       (Y / N) [Y] > 
> 
>       Create a virtual disk based on a device (CD or other block device), an 
> existing
>       image file (ISO), or a new file.  Specify a device by its device node, 
> such 
> as
>       /dev/cdrom, not its mount point.
>       What type of virtual disk do you want to add?
>         1: CD-ROM or DVD
>         2: Hard Disk
>       [2] > 2
>       Where will the virtual disk physically reside?
>       [/var/lib/xen/images/opensuse13/xvda] > 
>       Size (GB) [8.0] > 1
>       Create a sparse image file for the virtual disk?
>       (Y / N) [Y] > 
> 
>       Virtual Disks:
>         1.0 GB Hard Disk (file:/var/lib/xen/images/opensuse13/xvda)
>       Do you want to add another virtual disk?
>       (Y / N) [N] > y
> 
>       Create a virtual disk based on a device (CD or other block device), an 
> existing
>       image file (ISO), or a new file.  Specify a device by its device node, 
> such 
> as
>       /dev/cdrom, not its mount point.
>       What type of virtual disk do you want to add?
>         1: CD-ROM or DVD
>         2: Hard Disk
>       [2] > 1
>       Where will the virtual disk physically reside?
>       [/var/lib/xen/images/opensuse13/xvdb] > 
> /home/lt/work/openSUSE-13.2-DVD-x86_64.iso
> 
>       Virtual Disks:
>         1.0 GB Hard Disk (file:/var/lib/xen/images/opensuse13/xvda)
>         4.4 GB CD-ROM or DVD (file:/home/lt/work/openSUSE-13.2-DVD-x86_64.iso)
>       Do you want to add another virtual disk?
>       (Y / N) [N] > 
> 
>       Network Adapters
>         (None)
>       Do you want to add another virtual network adapter?
>       (Y / N) [Y] > 
> 
>       Network Adapters
>         Paravirtualized; Randomly generated MAC address
>       Do you want to add another virtual network adapter?
>       (Y / N) [N] > 
> 
>       Specify the bootable virtual disk (often labeled as Disk 1) or the 
> network
>       installation source URL.  Each CD, DVD, or ISO image required for 
> installation
>       must be added as a virtual disk.
>         1: Network URL (ftp://, http://, nfs://, smb://)
>         2: Virtual Disk (4.4 GB CD-ROM or DVD 
> (file:/home/lt/work/openSUSE-13.2-DVD-x86_64.iso))
>       [1] > 2
> 
>       Some operating systems support automating the installation by 
> specifying a 
> URL
>       or file(s).  Select a directory to include multiple files.
>       AutoYaST file > 
> 
>       Some operating systems accept additional arguments, used to customize 
> the
>       installation or boot process.
>       Additional Arguments > 
> 
>       Preparing to start the installation...
> 
>       Installing...
> 
>       Error: [Errno 2] No such file or directory
>       Performing post-installation checks...
> 
>       Error: [Errno 2] No such file or directory: 
> '/var/lib/xen/images/opensuse13/xvda'
>       Exception OSError: (2, 'No such file or directory', 
> '/etc/xen/vm/opensuse13.xml') in <bound method Job.__del__ of 
> <vminstall.job.Job object at 0x7fbd5dc18210>> ignored
> 
> Where
> 
>       ls -al /var/lib/xen/images/opensuse13 /etc/xen/vm/
>               /etc/xen/vm/:
>               total 8.0K
>               drwxr-xr-x 2 root root 4.0K Apr  9 13:03 ./
>               drwx------ 6 root root 4.0K Apr  9 06:19 ../
> 
>       /var/lib/xen/images/opensuse13:
>               total 8.0K
>               drwxr-xr-x 2 root root 4.0K Apr  9 13:03 ./
>               drwx------ 3 root root 4.0K Apr  9 12:28 ../
> 
> The script doesn't create/dd the xvda HD?

It is working for me although I think you should specify more that a 1 Gig disk 
which is to small to fit even a base system with a swap file.

- Charles

--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to