Submitted by Falcon on Wed, 02/25/2015 - 12:39
We searched for this problem and all we could find was Add System > Add Physical System. However these options do not exist on my cloudmin system.
Hosting with Hetzner. Used install script for gpl license. Completed with no errors.
Can you please point me in the right direction.
Thank you. Ettienne
Status:
Active
Comments
Submitted by JamieCameron on Wed, 02/25/2015 - 15:51 Comment #1
So are you running the single-system GPL KVM version of Cloudmin there?
Submitted by Falcon on Thu, 02/26/2015 - 03:21 Comment #2
Forgot to mention I'm using Xen.
Submitted by Falcon on Thu, 02/26/2015 - 06:07 Comment #3
On the host system I've got virtualmin, cloudmin & webmin installed. Please see image below for a screenshot: https://yadi.sk/i/jeVo2lxLeuHqr On the left menu you can see status: virtualmin which means what exactly?
Submitted by andreychek on Thu, 02/26/2015 - 11:56 Comment #4
The status of "Virtualmin" means that Cloudmin can see/access Virtualmin running on that VM.
Just to clarify though, is it Cloudmin Pro or GPL that you're using there?
Submitted by JamieCameron on Thu, 02/26/2015 - 12:51 Comment #5
This message can also mean that Cloudmin thinks that your system isn't ready to host VMs because something is missing. If you go to the "Edit KVM Host" from the left menu, does it display any errors?
Submitted by Falcon on Thu, 02/26/2015 - 13:37 Comment #6
I don't have "Edit KVM Host".. Also, everything installed is GPL..
All I got is "Host Systems" > "Xen Host Settings" & "Ip Address" Or "New System" > "Add Xen Instance" & "Create Xen Instance"
Submitted by JamieCameron on Thu, 02/26/2015 - 19:06 Comment #7
Sorry, I meant "Xen Host Settings". If you visit that page and click "Save", does it report any errors?
Submitted by Falcon on Fri, 02/27/2015 - 02:45 Comment #8
Nope I've done that multiple times. It saves successfully and goes to "Cloudmin Managed Systems". I only get an error on "Create Xen Instance".
I wanted to click "De-Register" button and redo the host, but not really sure if that will help or make things worse..
There's not other errors and that is the problem nothing to fix.
Please tell me if I purchase a cloudmin license, would I have to re-setup from scratch?
Submitted by JamieCameron on Fri, 02/27/2015 - 19:06 Comment #9
One thing you could try is creating a VM from the shell by running the
cloudmin create-system
command as root - this should output a more useful error message.The full command will be something like :
cloudmin create-system --type xen --host yourvmname --image some-image-name --ssh-pass foo
Submitted by Falcon on Sat, 02/28/2015 - 06:42 Comment #10
Ok got an error:
Host system xxx.xxxxxx.com cannot be used : Only 32.01 MB RAM would be free after creating this system, but the minimum is 2 GB
Please can you explain to me what the following settings under: Xen Host Settings > Virtual system resource limits > Memory to leave free?
I can make it anything I want but still get the error? We've got 24gb on this server but unable to create one instance..
I tried to allocate memory to the plan or make it unlimited but still gives error. In the cloudmin documentation all I can find is just another option (resource > resource limits) which does not exist in my cloudmin.
Submitted by JamieCameron on Sat, 02/28/2015 - 12:22 Comment #11
Make sure that the "Memory to leave free?" is set to something reasonable, like 1 GB - just enough to allow Cloudmin itself to continue to run.
Also, make sure that when creating the VM that you enter a reasonable RAM size, like less than 20 GB.
Submitted by Falcon on Sat, 02/28/2015 - 12:52 Comment #12
[ ]#cloudmin create-system --type xen --host in2find.net --image xen-centos6.0-base --xen-memory 1000 --owner in2fowner --ssh-pass 123456
Host system zero.in10cloud.com cannot be used : An extra 693.04 MB free RAM is needed to create this system
Looks like it's saying I can only make a system with less than 300mb? Why is that? Where do you set how much can be allocated per system? I also tried with 512mb then the error states 203.27 MB free RAM needed.
Tried to set the account plan to 10gb and tested the unlimited option, but no change in the error.
It must be a xen limitation somewhere for per xen instance?
Submitted by Falcon on Sat, 02/28/2015 - 13:08 Comment #13
So I tried to create a 300mb memory vm, see below:
]# cloudmin create-system --type xen --host in2find.net --image xen-centos6.0-base --xen-memory 300 --owner in2fowner --ssh-pass @wsXzaQ1
Host system zero.in10cloud.com cannot be used : Only 10.23 MB RAM would be free after creating this system, but the minimum is 1024 MB
Submitted by JamieCameron on Sat, 02/28/2015 - 13:28 Comment #14
It looks like Cloudmin is getting the RAM available for Xen hosting wrong - perhaps because not all the RAM on the system is usable by Xen. I would be interested to see what the
xm info
command outputs on your system..Submitted by Falcon on Mon, 03/02/2015 - 17:29 Comment #15
Thanks te create instance helped me diagnose the problem. So eventually I got the vm instance created and started. However the status I get now is ping failed.
I can only use the graphical (VNC) viewer in cloudmin to get into the vm. Not through the net. Any ping requests return with unknown host or could not resolve..
The resolv.conf is fine, exactly like on the host.. Also on host it shows ifconfig vif was created for the vm but I don't see any ip addr for the vif?
I previously reserved the additional ip on the host via adding eth0:1 which is probably not working for xen as then the ip becomes taken and unable to use with instance. But even if I remove it and restart xend and the vm then the recreated vif stay the same without any ip/netmask or broadcast config..
I can connect via ssh to that ip or the resolvable hostname however I only to end up logging into the host machine and not the vm guest system.
Then can you tell me what is the peth0 interface that gets created automatically? it also doesn't contain any ip addresses..
What could be wrong, does it have to do with the bridging? or perhaps something to do with my host (hetzner) routing..?
I'm so close, any help you could provide would be greatly appreciated. Would gladly provide root access to you, just let me know.
Thank you. Ettienne
Submitted by JamieCameron on Mon, 03/02/2015 - 23:50 Comment #16
Sounds like a routing issue - make sure that on your VM, a default gateway is set (it should be visible with the
netstat -rn
command), and that the gateway is reachable from the VM's IP address.Submitted by Falcon on Tue, 03/03/2015 - 06:16 Comment #17
Yes I'm unable to find gateway or any other local address.. so netstat -rn gives no result, no entries..
My ifcfg-eth0 on the vm is as follows:
TYPE=Ethernet
DEVICE=eth0
IPADDR=46.4.83.60
NETMASK=255.255.255.224
BROADCAST=46.4.83.63 (on the host this usually is "scope 46.4.83.33")
NETWORK=46.4.83.32 (I never specified this ip anywhere, was generated)
GATEWAY=46.4.83.33 (Also on the host this gateway not located in eth0, it's in route-eth0)
ONBOOT=yes
Submitted by JamieCameron on Tue, 03/03/2015 - 16:43 Comment #18
That config file looks OK - I assume that on the VM that
ifconfig
shows an IP address for theeth0
interface?Submitted by Falcon on Wed, 03/04/2015 - 12:31 Comment #19
I can ping the host from DOMU, I setup network-route & vif-route in xen conf.
The vm Status is: SSH..
So only problem is getting to the internet. Host doesn't seen to allow the guest system.
See following on DomU:
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
46.4.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 46.4.83.39 0.0.0.0 UG 0 0 0 eth0
Ping the host:
# ping 46.4.83.39
PING 46.4.83.39 (46.4.83.39) 56(84) bytes of data.
64 bytes from 46.4.83.39: icmp_seq=1 ttl=64 time=0.085 ms
64 bytes from 46.4.83.39: icmp_seq=2 ttl=64 time=0.062 ms
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:00:79:F2
inet addr:46.4.83.60 Bcast:46.4.83.63 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe00:79f2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12214 errors:0 dropped:0 overruns:0 frame:0
TX packets:17535 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1824384 (1.7 MiB) TX bytes:2956267 (2.8 MiB)
Interrupt:11
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3502 errors:0 dropped:0 overruns:0 frame:0
TX packets:3502 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:290876 (284.0 KiB) TX bytes:290876 (284.0 KiB)
Following on host:
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 46.4.83.33 0.0.0.0 UG 0 0 0 eth0
46.4.83.33 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
46.4.83.60 0.0.0.0 255.255.255.255 UH 0 0 0 vif8.0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
The Vif on host:
vif8.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:46.4.83.39 Bcast:46.4.83.39 Mask:255.255.255.255
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17539 errors:0 dropped:0 overruns:0 frame:0
TX packets:12218 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:2711057 (2.5 MiB) TX bytes:1995716 (1.9 MiB)
Submitted by JamieCameron on Wed, 03/04/2015 - 13:45 Comment #20
You may need to enable routing of traffic on the host - see http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/