[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] creating a vm from a file system


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Joel Nylund <jnylund@xxxxxxxxx>
  • Date: Fri, 15 Feb 2008 11:27:07 -0500
  • Delivery-date: Fri, 15 Feb 2008 13:39:20 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:X-Mailer; b=pxuK/n8kzUXJwEoSUSkasYxd3qMv3ODNllJnp7qwiJNZmjZfhYgV1Hi0vFAayz7+QsCi+wcwcjM2ZMKGvE8nm1YQGIyOrW/8xf7yTbbFOwEPpNhYGSPhTZ9agJY7ZmGx8A1imBd18Ptx62EcnRhM6x5qF/VmZEZShD+Y0d+v9BE= ;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Sorry if this is a dupe, I sent the original yesterday at 1:40pm and for some reason it never made it
--------------------------------------------------------

Hi, I have looked through the manual now, but I still dont get it.

Lets say I have a standard fedora setup running xen kernel & xen

I have a the filesystem I want the vm to use (files given to me from a previously used vm ) starting with its root starting at (/root/vms/ jnylund2)

My hard drive devices are:
Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       30401   244091610   8e  Linux LVM

I created a config file with the following:

# Kernel image file.
kernel = "vmlinuz-2.6.20-1.3002.fc6xen"
memory =512
name = "jnylund2"
vif = [ '' ]
disk = [ 'phy:sda2,sda2,w' ]
dhcp="dhcp"
hostname= "vm%d" % vmid
#root = "/root/vms/jnylund2"
root = "/dev/sda1 ro"
#extra = "4"

When I try to run:
[root@mymachine vms]# xm create -c j2-conf vmid=1
Using config file "./j2-conf".
Error: int argument required

It doesn't work, and I also dont understand where im supposed to tell it to use /root/vms/jnylund2 as the root of the virtual machines file system.

thanks
Joel


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.