Submitted by sysadmin@britis... on Fri, 10/28/2011 - 07:57
I have created an Ubuntu cloudmin KVM instance, but I would like to configure it so that i can received usage information in the cloudmin console and also create a images so I can create an image with the correct details I set up in cloudmin. Currently creating a new instance does not take any settings form the the interface.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Fri, 10/28/2011 - 11:05 Comment #1
Do you mean you want to import this manually created KVM instance to Cloudmin's control? If so, you can do this at Add System -> Add KVM Instance..
Submitted by sysadmin@britis... on Fri, 10/28/2011 - 11:25 Comment #2
I have already created a instance from an ISO, but am not getting any monitoring output from the instance. I would like to create a KVM instance (with some thing like Stacklet Bundler), so it works with cloudmin
Submitted by JamieCameron on Fri, 10/28/2011 - 15:06 Comment #3
What do you mean by not getting any monitoring output? What status cloudmin showing for the VM - normally it is something like "down" or "SSH failed" or "Ping failed".
Also, can you access the VM's console at System State -> Graphical Console?
Submitted by sysadmin@britis... on Mon, 10/31/2011 - 06:25 Comment #4
I am able to acces the Graphical Console via 'System State> Graphical Console' But I am unable to see any data in 'Resources>Statistics Graphs' Also i do not have the option to 'change password' under 'system operations' The option for 'System Configuration' is not present at all.
To get these functions working do I have to install a api or build the KVM instance some package that includes the required files?
Submitted by JamieCameron on Mon, 10/31/2011 - 13:11 Comment #5
Those functions should just work, as long as Cloudmin can login to the VM to collect stats.
What status does it show on the left menu when you select the VM from the list?
Submitted by sysadmin@britis... on Mon, 10/31/2011 - 13:19 Comment #6
The status show: SSH login failed I have changed the setting under Edit System for the VM (Authentication options)
Submitted by JamieCameron on Mon, 10/31/2011 - 14:05 Comment #7
"SSH login failed" means that Cloudmin didn't know the root password for your system.
Make sure you set the correct password at Edit System -> Authentication options. Also, if this is an Ubuntu system, it may not allow direct SSH login as root by default. To fix that, login via the graphical console, sudo to root, edit
/etc/ssh/sshd_config
and change thePermitRootLogin
line toyes
. Then restartsshd
.Submitted by sysadmin@britis... on Mon, 10/31/2011 - 14:59 Comment #8
The PermitRootLogin line is already set to 'yes'. The authentication details are correct. I can login to the vm via ssh, with no issue. Are the stats pulled from the VM via ssh??
Submitted by JamieCameron on Mon, 10/31/2011 - 15:24 Comment #9
Can you login to the VM directly as root, or are you logging in as another user and then sudoing to root?
Submitted by sysadmin@britis... on Mon, 10/31/2011 - 16:17 Comment #10
i am loggin in as another user, then 'sudoing' to root.
Submitted by JamieCameron on Mon, 10/31/2011 - 16:25 Comment #11
Ok .. Cloudmin needs to be able to login directly as root via SSH in order to upload or download files.
Make sure you have a
root
password set, by sudoing to root and running thepasswd
command. Then make sure that in Cloudmin it is using that password to login to the VM.Submitted by sysadmin@britis... on Mon, 10/31/2011 - 16:31 Comment #12
Ok, now i am get some where. all th eoption are appearing but the graphical console is not working.
Submitted by JamieCameron on Mon, 10/31/2011 - 17:34 Comment #13
So what is the status shown as now?
Submitted by sysadmin@britis... on Mon, 10/31/2011 - 17:46 Comment #14
It says SSH!! :)
I reboot the VM and the grpahical console is working.
I have rebuild the VM as I am unable to resize the hard drive size, when creating the KVM instance do i have to select a particular option?
Submitted by JamieCameron on Mon, 10/31/2011 - 18:06 Comment #15
Ok, that's progress...
When creating a new VM, you can select the initial disk size on the creation form. Or you can typically resize it on an existing VM, but you will need to shut it down first. Also, resizing of the filesystem won't work unless the disk contains just a single non-LVM non-RAID partition..
Submitted by sysadmin@britis... on Wed, 11/02/2011 - 04:45 Comment #16
OK, i have tried creating an instance, with with no LVM or raid. When resize the disk i get the following error;
Warning - this disk cannot be safely resized. Cloudmin does not know what type of filesystem this disk contains, and so cannot properly resize it. This is most likely because the disk is not mounted on the virtual system.
How can i avoid this?
Submitted by JamieCameron on Wed, 11/02/2011 - 17:42 Comment #17
That's a bit of an improvement I think ..
On the VM, what does the
/etc/fstab
file contain?Submitted by sysadmin@britis... on Thu, 11/03/2011 - 12:43 Comment #18
Below is what i have in the file;
1 # /etc/fstab: static file system information.
2 #
3 # Use 'blkid' to print the universally unique identifier for a
4 # device; this may be used with UUID= as a more robust way to name devices
5 # that works even if disks are added and removed. See fstab(5).
6 #
7 # <file system> <mount point> <type> <options> <dump> <pass>
8 proc /proc proc nodev,noexec,nosuid 0 0
9 # / was on /dev/sda1 during installation
10 UUID=70159b3e-55c8-42ab-a53d-ada1c7dd811d / ext4 errors=rem ount-ro 0 1
11 # swap was on /dev/sda5 during installation
12 UUID=8a63e90c-4429-4910-967c-b512a6f765f6 none swap sw 0 0
Submitted by JamieCameron on Thu, 11/03/2011 - 13:18 Comment #19
You need to edit that file and change
UUID=70159b3e-55c8-42ab-a53d-ada1c7dd811d
to/dev/sda1
andUUID=8a63e90c-4429-4910-967c-b512a6f765f6
to/dev/sda5
. Otherwise, Cloudmin has no way of knowing what partition has that UUID when the VM isn't running ..Submitted by sysadmin@britis... on Fri, 11/11/2011 - 09:59 Comment #20
I have updated the fstab and when i try to resize the disk i get the following error; update failed : Only the last partition on a disk image can be resized
Details; Disk image format Whole disk Current use Mounted on / as Linux EXT4 (new)
Submitted by JamieCameron on Fri, 11/11/2011 - 13:00 Comment #21
What does
fdisk -l
output when run on the VM?Like the message says, if a VM's disk contains multiple partitions and the root directory is not mounted on the last partition, it cannot be enlarged. That's why if you are manually installing Linux into a VM, I recommend using just a single partition, instead of having separate /boot and swap partitions.
Submitted by sysadmin@britis... on Fri, 12/23/2011 - 08:37 Comment #22