# US 9,354,911 B2 · Method and system for logging into a virtual environment executing on a host

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,354,911 B2
- Document ID: US9354911B2
- Status: Granted
- Kind: B2
- Application number: 14/553,886
- Filed: 2014-11-25
- Published: 2015-03-19
- Granted: 2016-05-31
- Earliest claimed: 2012-09-27
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: John B. Levon
- Web page: https://patentgrep.com/patent/US9354911B2

## CPC

- G06F 9/45545: {Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for logging into a guest virtual environment (VE) from a host VE. The method includes receiving a request to login into the guest VE from the host VE. In response to the request, creating a virtual terminal driver (VTD). The VTD comprises a host extender located in the host VE and a guest extender located in a sub-host VE. The host VE and sub-host VE are configured to communicate using a master terminal and a slave terminal. Providing the guest extender to the third VE as a virtual serial terminal (VST). Logging into the guest VE using the master terminal, the slave terminal, a virtual environment manager (VEM), and the VTD, where the VEM is managing the guest VE.

## Claims

### Claim 1

A method for logging into a guest virtual environment (VE) from a host VE, comprising:
receiving a request to log into the guest VE from the host VE;
in response to the request, creating a virtual terminal driver (VTD), wherein the VTD comprises a host extender located in the host VE and a guest extender located in a sub-host VE, wherein the host VE and sub-host VE are configured to communicate using a master terminal and a slave terminal;
providing the guest extender to the third VE as a virtual serial terminal (VST); and
logging into the guest VE using the master terminal, the slave terminal, a virtual environment manager (VEM), and the VTD, wherein the VEM is managing the guest VE.

### Claim 2 (depends on 1)

The method of claim 1, wherein the guest VE is a virtual machine, and the VEM is a hypervisor.

### Claim 3 (depends on 2)

The method of claim 2, wherein the host VE is a global zone of an operating system, and the sub-host VE is a non-global zone of the operating system.

### Claim 4 (depends on 1)

The method of claim 1, wherein the VEM is located in the sub-host VE.

### Claim 5 (depends on 1)

The method of claim 1, wherein logging into the guest VE comprises sending data between the slave terminal and the host extender via the VEM.

### Claim 6 (depends on 5)

The method of claim 5, wherein data is exchanged between the VEM and the host extender using a userspace buffer located in the host VE.

### Claim 7 (depends on 5)

The method of claim 5, wherein logging into the guest VE further comprises sending data between the host extender and the guest VE via the guest extender.

### Claim 8 (depends on 7)

The method of claim 7, wherein data is exchanged between the host extender and the guest extender using a host buffer located in the host VE.

### Claim 9 (depends on 1)

The method of claim 1, wherein logging into the guest VE comprises:
creating, in the sub-host VE, a login handler enabled to communicate with the slave terminal;
obtaining, by the login handler, login parameters from the slave terminal;
modifying, by the login handler, the login parameters to create modified login parameters;
providing the modified login parameters to the guest VE; and
initializing a login session.

### Claim 10 (depends on 9)

The method of claim 9, wherein modifying the login parameters comprises modifying at least one flag in the login parameters to enable non-interactive login to the guest VE.

### Claim 11 (depends on 9)

The method of claim 9, wherein logging into the guest VE further comprises:
after providing the modified login parameters to the guest VE, putting the login handler to sleep for the duration of the session.

### Claim 12

A system comprising:
a processor;
a host virtual environment (VE), executing on the processor, comprising a master terminal;
a sub-host VE, configured to communicate with the host VE via a slave terminal connected to the master terminal;
a guest VE;
a virtual terminal driver (VTD), comprising:
a userspace buffer and a host buffer, located in the host VE;
a host extender, located in the host VE configured to read and write the userspace buffer and the host buffer;
a guest extender, located in the sub-host VE, configured to pass data between the host buffer and the virtual machine as a virtual serial terminal (VST); and
a virtual environment manager (VEM), configured to manage the guest VE, and communicate with the VTD.

### Claim 13 (depends on 12)

The system of claim 12, wherein the host VE is a global zone executing an operating system image, and the sub-host VE is a non-global zone executing the operating system image.

### Claim 14 (depends on 12)

The system of claim 12, wherein the guest VE is a virtual machine and the VEM is a hypervisor.

### Claim 15 (depends on 12)

The system of claim 12, wherein the VEM is located in the sub-host VE.

### Claim 16 (depends on 12)

The system of claim 12, wherein the userspace buffer and the host buffer are ring buffers.

### Claim 17 (depends on 12)

The system of claim 12, further comprising:
a login handler, located in the sub-host VE, configured to:
obtain login parameters from the slave terminal;
modify a flag in the login parameters to create modified login parameters; and
pass the modified login parameters to the VEM.

### Claim 18

A non-transitory computer readable medium, comprising instructions, which when executed on a processor, perform a method, the method comprising:
receiving a request to log into a guest virtual environment (VE) from a host VE, wherein the guest VE is managed by a VEM;
in response to the request, creating a virtual terminal driver (VTD), wherein the VTD comprises a host extender located in the host VE and a guest extender located in a sub-host VE, wherein the host VE and sub-host VE are configured to communicate using a master terminal and a slave terminal;
providing the guest extender to the guest VE as a virtual serial terminal (VST); and
logging into the guest VE using the master terminal, the slave terminal, the VEM, and the VTD.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein the guest VE is a virtual machine, and the VEM is a hypervisor.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the host VE is a global zone of an operating system, and the sub-host VE is a non-global zone of the operating system.
