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] XCP 1.1 is there an xe replacement for "xm console attac

To: "Todd Deshane" <todd.deshane@xxxxxxx>
Subject: RE: [Xen-users] XCP 1.1 is there an xe replacement for "xm console attach"?
From: "Joe Linoff" <jlinoff@xxxxxxxxxx>
Date: Wed, 13 Jul 2011 14:46:12 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 13 Jul 2011 14:47:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAMrPLW+1cHb+BNZvbJ6v=ULeE1n5qc=yiou+KK9KywjkJDvz4w@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <8AD4194C251EC74CB897E261038F44789D56A3@xxxxxxxxxxxxxxxxxxx> <CAMrPLW+1cHb+BNZvbJ6v=ULeE1n5qc=yiou+KK9KywjkJDvz4w@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcxBldMBLj48wYsXTVqoyuiXZJaM4AADiFNw
Thread-topic: [Xen-users] XCP 1.1 is there an xe replacement for "xm console attach"?
Hi Todd:

Thank you for the excellent reference. It really saved the day. I was able to 
get it working quickly. For future reference here is what I did. Note that 
although the VM was created and I was able to attach to it using "xl console 
<dom-id>".

% cat make-vm.sh
#!/bin/bash

set -x

# Create the VM
VM_UUID=$(xe vm-install template='CentOS 5 (64-bit)' new-name-label="tccadm")

# Make the dom0 CD not bootable.
DOM0_CD_UUID=$(xe vbd-list vm-uuid=$VM_UUID userdevice=0 params=uuid --minimal)
xe vbd-param-set uuid=$DOM0_CD_UUID bootable=false
DOM0_CD_NAME=$(xe cd-list | grep SCSI | sed -e 's/^.*SCSI/SCSI/')
DOM0_CD_DEVICE=$( echo "$DOM0_CD_NAME" | awk '{print $2;}' | awk -F: '{print 
$1;}')

# Add the CD to domU and make it bootable.
xe vm-cd-add vm=tccadm cd-name="$DOM0_CD_NAME" device=$DOM0_CD_DEVICE
DOMU_CD_UUID=$(xe vbd-list vm-uuid=$VM_UUID type=CD params=uuid --minimal)
xe vbd-param-set uuid=$DOMU_CD_UUID bootable=true

# Disable VNC so that we can use xl console
# URL: 
http://wiki.xensource.com/xenwiki/Xen_Cloud_Platform%3A_Access_to_VM_console
# Citation: Todd Deshane
xe vm-param-set uuid=$VM_UUID other-config:disable_pv_vnc=true 

# Configuration stuff: use the cd-rom, 2 cpus, 2GB RAM, 20GB disk space
xe vm-param-set uuid=$VM_UUID other-config:install-repository=cdrom
xe vm-param-set uuid=$VM_UUID VCPUs-max=2 VCPUs-at-startup=2 
xe vm-memory-limits-set uuid=$VM_UUID static-min=2147483648 
static-max=2147483648 dynamic-min=2147483648 dynamic-max=2147483648 
xe vm-param-set uuid=$VM_UUID other-config:disks='<provision><disk device="0" 
size="21474836480" sr="" bootable="true" type="system" /></provision>' 

# Set the xenbr0 IP address
NETW_UUID=$(xe network-list bridge=xenbr0 --minimal) 
xe vif-create vm-uuid=$VM_UUID network-uuid=$NETW_UUID device=0

# Start the VM -- boot off of the CD
xe vm-start uuid=$VM_UUID

% # Get the DOM id
% xe vm-list params=dom-id,name-label,uuid

% # Start the console
% xl console <dom-id>

NOTE that the VM was not able to see the CD-ROM so I am still stuck but that is 
another thread.

Regards,

Joe


-----Original Message-----
From: todd.deshane.xen@xxxxxxxxx [mailto:todd.deshane.xen@xxxxxxxxx] On Behalf 
Of Todd Deshane
Sent: Wednesday, July 13, 2011 12:48 PM
To: Joe Linoff
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] XCP 1.1 is there an xe replacement for "xm console 
attach"?

On Wed, Jul 13, 2011 at 12:41 PM, Joe Linoff <jlinoff@xxxxxxxxxx> wrote:
> Hi Folks:
>
> I am trying to setup a VM on a standalone machine using XCP 1.1beta with
> no internet or internal network access.
>
> Installing XCP was a breeze but when I tried to create a guest, I could
> not figure out how to attach to the VM console with the XCP tools at
> hand. I figured I could do one of the following:
>
> 1. Attach it to a network and use tunneling to get a VNC session working
> or
>   use the https:// access provided by "xe console-list"
>   That is perfectly fine but it defeats the purpose of the exercise.
>
> 2. Attach to the internet and install vncviewer onto the dom0.
>   That is also perfectly fine but like #1 it defeats the purpose of the
> exercise.
>
> 3. Run something like "xm console <dom-id>".
>   This seemed ideal but I could not figure out how to it.
>

> Is there analog to "xm console" in the xe command set? If so, can you
> provide a hint about how to use it?
>

Take a look at:
http://wiki.xensource.com/xenwiki/Xen_Cloud_Platform%3A_Access_to_VM_console

You need to kill the vncterm processes for the VM, but then you can
use xl console.

I think there is current ongoing work to make this situation better.

Thanks,
Todd

> The "xe console" documentation
> (http://docs.vmd.citrix.com/XenServer/5.6.0sp2/1.0/en_gb/reference.html)
> talks about a "vt100" protocol but I don't know what to do with it.
>
> Best regards,
>
> Joe
>
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>



-- 
Todd Deshane
http://www.linkedin.com/in/deshantm
http://www.xen.org/products/cloudxen.html
http://runningxen.com/

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

<Prev in Thread] Current Thread [Next in Thread>