WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: "Joel Nylund" <jnylund@xxxxxxxxx>
Subject: Re: [Xen-users] creating a vm from a file system
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Sun, 17 Feb 2008 22:08:07 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 17 Feb 2008 19:08:43 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=2ohkrLnX8IgvTriDyw9BafuZcK49EiPNZaylPtgcj0Y=; b=JRxS8e7NC0719pJRJczb3wtA/2k61lJxl0J8jRWEuD3QHwFgCL2KWOF1EuxjXABFM3b/DSIUNyuFT1QLwal60DCpFxF2FG+woSmrDtRNvhF8cAJPsPxzb3oXacDWMcUZPgi8EhpBSbxbz4rih+Cds7XI6yhUqOpe2Y0TVo1u8Xw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=PQ2A9DiSkK6cLWj/ln0w58uaYOF4t//lZYsmrvrgIXkZy8TihThhTyqFkmG7U6U2wUK/Ai7ukik5bgNjlp6P3X4ZihiiZTpcYnUPXi3WE2gTSImBMhICkjvn2YHYrEo7qNDTPo2zoLYBH8COdHsgYn+P/n+onUfpy+pjyPjHi7A=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C87DE0AC-9F64-4C26-A8F0-72EC344B1A47@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <C87DE0AC-9F64-4C26-A8F0-72EC344B1A47@xxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Feb 15, 2008 11:27 AM, Joel Nylund <jnylund@xxxxxxxxx> wrote:
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

It looks like the hostname line is missing an end quote too

 

#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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>