@@ -19,7 +19,7 @@ You can access a virtual machine (VM) that is attached to a secondary network in
1919+
2020[source,terminal]
2121----
22- $ oc get vm -n secondary-test vm-test-sec-dns -o yaml
22+ $ oc get vm -n < namespace > < vm _name > -o yaml
2323----
2424+
2525.Example output
@@ -29,51 +29,41 @@ apiVersion: kubevirt.io/v1
2929kind: VirtualMachine
3030metadata:
3131 labels:
32- kubevirt.io/vm: vm-test-sec-dns
33- name: vm-test-sec-dns <1>
34- namespace: secondary-test <2>
32+ kubevirt.io/vm: example-vm
33+ name: example-vm
34+ namespace: example-namespace
3535spec:
3636 running: true
3737 template:
3838 metadata:
3939 labels:
40- kubevirt.io/vm: vm-test-sec-dns
40+ kubevirt.io/vm: example-vm
4141 spec:
4242 domain:
4343 devices:
4444# ...
4545 interfaces:
4646 - bridge: {}
47- name: nic1
47+ name: example-nic
4848# ...
4949 networks:
5050 - multus:
5151 networkName: bridge-conf
52- name: nic1 <3 >
52+ name: example-nic <1 >
5353# ...
5454----
55- <1> The name of the `VirtualMachine` object.
56- <2> The namespace in which the `VirtualMachine` object is defined.
57- <3> The name of the secondary network interface.
55+ <1> Specify the name of the secondary network interface.
5856
5957. Connect to the VM by using the `ssh` command:
6058+
61- --
6259[source,terminal]
6360----
64- $ ssh <interface _name >.<vm _name >.<namespace >.vm.<FQDN>
61+ $ ssh <user _name >@< interface _name >.<vm _name >.<namespace >.vm.<FQDN> <1 >
6562----
66-
67- where:
68-
69- * `<interface_name>` specifies the name of the secondary network interface.
70- * `<vm_name>` specifies the name of the `VirtualMachine` object.
71- * `<namespace>` specifies the namespace in which the `VirtualMachine` object is defined.
72- * `<FQDN>` specifies the fully qualified domain name of the cluster.
73- --
63+ <1> Specify the user name, interface name, VM name, VM namespace, and FQDN.
7464+
7565.Example
7666[source,terminal]
7767----
78- $ ssh nic1.vm-test-sec-dns.secondary-test .vm.openshift.example.com
68+ $ ssh
[email protected] .vm.openshift.example.com
7969----
0 commit comments