TritonDataCenter / smartos-live

For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.57k stars 246 forks source link

Network Issue when creating/Running KVM #389

Open atuljain opened 9 years ago

atuljain commented 9 years ago

Hello this is my json file i am facing problem when i am trying to get vnc details , for each KVM there is always same vnc address only port changed i succesfully created kvm but i can't connect to that kvm

vmadm create -f /opt/trade/debian.json Successfully created VM c59c135e-e034-4575-95b2-021aea130b5c

"" vmadm info 20b8c32c-b800-4651-97bf-d99a7e4491b3 vnc { "vnc": { "host": "172.77.77.77", "port": 55762, "display": 49862 } } "" JSON FILE { "brand": "kvm", "resolvers": [ "172.22.77.77", "8.8.8.8" ], "ram": "1024", "vcpus": "1", "nics": [ { "nic_tag": "admin", "ip": "172.22.77.94", "netmask": "255.255.255.0", "gateway": "172.22.77.77", "model": "virtio", "primary": true } ], "disks": [ { "image_uuid": "6dde8b1a-0780-11e4-a57b-6b7ac24a7cd4", "boot": true, "model": "virtio" } ] }

i am newbie please help

atuljain commented 9 years ago

full description of zone

{ "zonename": "20b8c32c-b800-4651-97bf-d99a7e4491b3", "autoboot": true, "brand": "kvm", "limit_priv": "default,-file_link_any,-net_access,-proc_fork,-proc_info,-proc_session", "v": 1, "create_timestamp": "2015-01-20T07:24:03.819Z", "cpu_shares": 100, "zfs_io_priority": 100, "max_lwps": 2000, "max_physical_memory": 2048, "max_locked_memory": 2048, "max_swap": 2048, "billing_id": "00000000-0000-0000-0000-000000000000", "owner_uuid": "00000000-0000-0000-0000-000000000000", "resolvers": [ "172.22.77.77", "8.8.8.8" ], "ram": 1024, "vcpus": 1, "disks": [ { "path": "/dev/zvol/rdsk/zones/20b8c32c-b800-4651-97bf-d99a7e4491b3-disk0", "boot": true, "model": "virtio", "media": "disk", "image_size": 10240, "image_uuid": "6dde8b1a-0780-11e4-a57b-6b7ac24a7cd4", "zfs_filesystem": "zones/20b8c32c-b800-4651-97bf-d99a7e4491b3-disk0", "zpool": "zones", "size": 10240, "compression": "lz4", "refreservation": 10240, "block_size": 8192 } ], "nics": [ { "interface": "net1", "mac": "52:1d:5c:47:8d:43", "nic_tag": "external", "gateway": "172.22.77.66", "ip": "172.22.77.95", "netmask": "255.255.255.0", "model": "virtio", "primary": true } ], "alias": "tradebooxdeb", "uuid": "20b8c32c-b800-4651-97bf-d99a7e4491b3", "zone_state": "running", "zonepath": "/zones/20b8c32c-b800-4651-97bf-d99a7e4491b3", "zoneid": 12, "last_modified": "2015-01-20T11:02:09.000Z", "firewall_enabled": false, "server_uuid": "90022b03-3404-9205-6c06-4b0700080009", "platform_buildstamp": "20141113T164921Z", "state": "running", "boot_timestamp": "2015-01-20T10:48:36.000Z", "pid": 7593, "customer_metadata": {}, "internal_metadata": {}, "routes": {}, "tags": {}, "quota": 10, "zfs_root_compression": "lz4", "zfs_root_recsize": 131072, "zfs_filesystem": "zones/20b8c32c-b800-4651-97bf-d99a7e4491b3", "zpool": "zones", "snapshots": [] }

bahamat commented 9 years ago

What VNC client are you using? I've had trouble with Mac OS X's built in Screen Sharing app, but Chicken works well for me.

Make sure you put in the port number not the display number.

atuljain commented 9 years ago

i put port number , and i try it with fedora inbuilt vnc client and also tigerVNC client