Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
kvm installation on CentOS7
06-13-2018, 06:26 PM
Post: #41
RE: kvm installation on CentOS7
(06-13-2018 05:27 PM)rayluk Wrote:  
(06-13-2018 05:08 PM)changxy Wrote:  
(06-13-2018 04:54 PM)rayluk Wrote:  
(06-13-2018 04:19 PM)changxy Wrote:  
(06-13-2018 04:09 PM)rayluk Wrote:  
(06-13-2018 03:11 PM)changxy Wrote:  
(05-25-2018 07:05 PM)rayluk Wrote:  
(05-23-2018 01:07 PM)rayluk Wrote:  cen716 created from xen can be boot from kvm
Code:
qemu-system-x86_64 -vnc :2 -smp 2 -m 4000 -hda /thinker/local/vms/cent716/vmdisk0

After further tests, this is not valid as -enable-kvm is not used in the line.
When we use -enable-kvm to boot a disk from xen, it would report bugs.

@rayluk
Code:
qemu-system-x86_64 --enable-kvm -smp 2 -m 4000 --boot d -vnc :2 -cdrom /data/CentOS-7.iso -hda /root/kvm/vdisk.img
After I type the code above, it shows nothing on my computer, is there a kvm window or something?
And I got
Code:
VNC server running on ::1:5900
That means the KVM is working right?

Yes.

You can connect to a the vnc at port 5901 to have a look ( I am not sure it is 5900/5901/5902 here as there are difference among commands).

This command would install the ISO to the vmdisk as if booting a machine with an autation usb and a hdd.

For running a normal VM, I think you can remove the "-cdrom /data..." part for that.

To connection to that VNC, following is my suggestion.

Code:
Start a VNC server on tbg15.
Port-forwarding to  VNC port to your own machine
Use VNC client to connect to the VNC local port
Connection to the VNC instance on otter through a vnc client in the VNC window
I need to be root to start VNC server on tbg15, I am not in the sudoers file.
You don't need to be root for that. Just run `vncserver` as a normal user would be good

I think vnc and vnc-server not installed on tb15-6.
Code:
[changxy@tb15-6 ~]$ rpm -qa | grep vnc
[changxy@tb15-6 ~]$ rpm -q vnc-server
package vnc-server is not installed
[changxy@tb15-6 ~]$ rpm -q vncserver
package vncserver is not installed

Sorry, I though its the lastest autation. I made a request in related post. Will notify here when vncserver is installed.

Thank you for all your work.
Find all posts by this user
Quote this message in a reply
06-14-2018, 11:03 AM
Post: #42
RE: kvm installation on CentOS7
(06-13-2018 05:27 PM)rayluk Wrote:  
(06-13-2018 05:08 PM)changxy Wrote:  
(06-13-2018 04:54 PM)rayluk Wrote:  
(06-13-2018 04:19 PM)changxy Wrote:  
(06-13-2018 04:09 PM)rayluk Wrote:  
(06-13-2018 03:11 PM)changxy Wrote:  
(05-25-2018 07:05 PM)rayluk Wrote:  
(05-23-2018 01:07 PM)rayluk Wrote:  cen716 created from xen can be boot from kvm
Code:
qemu-system-x86_64 -vnc :2 -smp 2 -m 4000 -hda /thinker/local/vms/cent716/vmdisk0

After further tests, this is not valid as -enable-kvm is not used in the line.
When we use -enable-kvm to boot a disk from xen, it would report bugs.

@rayluk
Code:
qemu-system-x86_64 --enable-kvm -smp 2 -m 4000 --boot d -vnc :2 -cdrom /data/CentOS-7.iso -hda /root/kvm/vdisk.img
After I type the code above, it shows nothing on my computer, is there a kvm window or something?
And I got
Code:
VNC server running on ::1:5900
That means the KVM is working right?

Yes.

You can connect to a the vnc at port 5901 to have a look ( I am not sure it is 5900/5901/5902 here as there are difference among commands).

This command would install the ISO to the vmdisk as if booting a machine with an autation usb and a hdd.

For running a normal VM, I think you can remove the "-cdrom /data..." part for that.

To connection to that VNC, following is my suggestion.

Code:
Start a VNC server on tbg15.
Port-forwarding to  VNC port to your own machine
Use VNC client to connect to the VNC local port
Connection to the VNC instance on otter through a vnc client in the VNC window
I need to be root to start VNC server on tbg15, I am not in the sudoers file.
You don't need to be root for that. Just run `vncserver` as a normal user would be good

I think vnc and vnc-server not installed on tb15-6.
Code:
[changxy@tb15-6 ~]$ rpm -qa | grep vnc
[changxy@tb15-6 ~]$ rpm -q vnc-server
package vnc-server is not installed
[changxy@tb15-6 ~]$ rpm -q vncserver
package vncserver is not installed

Sorry, I though its the lastest autation. I made a request in related post. Will notify here when vncserver is installed.

I think zma has permitted the request, please install the vncserver and notify me when you are free. Thank you so much.
Find all posts by this user
Quote this message in a reply
06-14-2018, 11:11 AM
Post: #43
RE: kvm installation on CentOS7
(06-14-2018 11:03 AM)changxy Wrote:  
(06-13-2018 05:27 PM)rayluk Wrote:  
(06-13-2018 05:08 PM)changxy Wrote:  
(06-13-2018 04:54 PM)rayluk Wrote:  
(06-13-2018 04:19 PM)changxy Wrote:  
(06-13-2018 04:09 PM)rayluk Wrote:  
(06-13-2018 03:11 PM)changxy Wrote:  
(05-25-2018 07:05 PM)rayluk Wrote:  
(05-23-2018 01:07 PM)rayluk Wrote:  cen716 created from xen can be boot from kvm
Code:
qemu-system-x86_64 -vnc :2 -smp 2 -m 4000 -hda /thinker/local/vms/cent716/vmdisk0

After further tests, this is not valid as -enable-kvm is not used in the line.
When we use -enable-kvm to boot a disk from xen, it would report bugs.

@rayluk
Code:
qemu-system-x86_64 --enable-kvm -smp 2 -m 4000 --boot d -vnc :2 -cdrom /data/CentOS-7.iso -hda /root/kvm/vdisk.img
After I type the code above, it shows nothing on my computer, is there a kvm window or something?
And I got
Code:
VNC server running on ::1:5900
That means the KVM is working right?

Yes.

You can connect to a the vnc at port 5901 to have a look ( I am not sure it is 5900/5901/5902 here as there are difference among commands).

This command would install the ISO to the vmdisk as if booting a machine with an autation usb and a hdd.

For running a normal VM, I think you can remove the "-cdrom /data..." part for that.

To connection to that VNC, following is my suggestion.

Code:
Start a VNC server on tbg15.
Port-forwarding to  VNC port to your own machine
Use VNC client to connect to the VNC local port
Connection to the VNC instance on otter through a vnc client in the VNC window
I need to be root to start VNC server on tbg15, I am not in the sudoers file.
You don't need to be root for that. Just run `vncserver` as a normal user would be good

I think vnc and vnc-server not installed on tb15-6.
Code:
[changxy@tb15-6 ~]$ rpm -qa | grep vnc
[changxy@tb15-6 ~]$ rpm -q vnc-server
package vnc-server is not installed
[changxy@tb15-6 ~]$ rpm -q vncserver
package vncserver is not installed

Sorry, I though its the lastest autation. I made a request in related post. Will notify here when vncserver is installed.

I think zma has permitted the request, please install the vncserver and notify me when you are free. Thank you so much.

Installed
Find all posts by this user
Quote this message in a reply
06-14-2018, 03:17 PM
Post: #44
RE: kvm installation on CentOS7
Code:
[changxy@tb15-6 ~]$ rpm -qa | grep -i gnome
libgnome-keyring-3.12.0-1.el7.x86_64

There is no gnome can use, the connection to tb15-6 is successful, but since gnome is not installed I can't see anything. Please install gnome on tb15-6. Thank you

@rayluk
Find all posts by this user
Quote this message in a reply
06-21-2018, 11:56 AM
Post: #45
RE: kvm installation on CentOS7
(06-14-2018 03:17 PM)changxy Wrote:  
Code:
[changxy@tb15-6 ~]$ rpm -qa | grep -i gnome
libgnome-keyring-3.12.0-1.el7.x86_64

There is no gnome can use, the connection to tb15-6 is successful, but since gnome is not installed I can't see anything. Please install gnome on tb15-6. Thank you

@rayluk

Sorry for missing this . Installed.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: