# Change a machine's settings

Each machine has its own hardware, display, sound, and device settings, apart from the app's settings.

## Find a setting

Select the machine, choose **Machine > Machine Settings**, then click a pane.

| To change | Pane | Guide |
|---|---|---|
| CPUs, memory, Rosetta, Secure Boot, or nested virtualization | Hardware | [Run a hypervisor inside a machine](https://osmates.com/docs/nested-virtualization) |
| A Windows machine's firmware | Hardware | [Update the firmware](https://osmates.com/docs/windows-use#update-the-firmware) |
| Disk size | Storage | [Grow a disk](https://osmates.com/docs/storage#grow-a-disk) |
| Display size, 3D, or HDR | Display | [Change the display](https://osmates.com/docs/settings#change-the-display) |
| Speakers and microphone | Sound | [Hear and record sound](https://osmates.com/docs/settings#hear-and-record-sound) |
| Sleep, login, and restarts | Power | [Start, pause, and stop machines](https://osmates.com/docs/power) |
| Connection and network access | Network | [Check and change a machine's network](https://osmates.com/docs/network), [Limit what a machine reaches](https://osmates.com/docs/egress) |
| Shared folders and clipboard | Sharing | [Copy files and share folders](https://osmates.com/docs/files) |
| Camera and security key | Devices | [Use your Mac's camera](https://osmates.com/docs/camera), [Use a security key](https://osmates.com/docs/security-key) |
| USB devices | USB | [Use USB devices](https://osmates.com/docs/usb) |
| Snapshot schedule | Snapshots | [Save and restore a machine](https://osmates.com/docs/snapshots#schedule-automatic-snapshots) |
| Agent recording, access, and credentials | Agents | [Review what an agent did](https://osmates.com/docs/agent-history), [Keep tokens out of your machines](https://osmates.com/docs/credentials) |

Only machines that have sound show the Sound pane, and only those with a camera or security key show Devices. [What each system supports](https://osmates.com/docs/engines) lists which ones do. App settings are in [Find your way around](https://osmates.com/docs/app#change-osmates-settings).

## Change CPUs and memory

Shut the machine down before you change CPUs, memory, the connection, disk size, or processor name. Sound, sharing, power, the camera, and network access change while it runs.

1. Select the machine, choose **Machine > Machine Settings**, then click **Hardware**.
2. Set **CPUs** and **Memory**, within what your Mac has.

```sh
osmates vm set dev --cpus 4 --memory 8G
```

The defaults depend on the system, as [Requirements](https://osmates.com/docs/requirements#what-each-machine-gets) lists.

## Change the display

Windows and macOS machines start at 2880 x 1800 pixels at 200%. Resizing the machine's window changes the size to fit.

1. Select the machine, choose **Machine > Machine Settings**, then click **Display**.
2. Choose a size under **Size**. For another size, choose **Custom**, enter a **Width** and **Height** in pixels, then click **Change**.

Linux and Windows widths go in steps of 8. Windows and Linux machines also have a Retina switch, and Windows takes a new scale at your next sign-in. A suspended machine can't change its display.

```sh
osmates vm resize dev 1920x1200 --scale 1
```

Windows goes up to 16,777,216 pixels in all, so a 6K display gets 5456 x 3072, scaled to fit. For Linux, see [Displays and 3D in Linux](https://osmates.com/docs/linux-graphics).

## Hear and record sound

Machines with sound play it through your Mac's default output. The microphone is off on every new machine and clone, and the guest records silence until you turn it on.

1. Select the machine, choose **Machine > Machine Settings**, then click **Sound**. The machine's toolbar has **Sound** too.
2. Turn on **Microphone**, or mute the machine.
3. If you see a request for microphone access, click **Allow**.

```sh
osmates vm set dev --no-mute --microphone
```

Machines on the OSMates engine apply a change while they run. On Apple Virtualization, shut the machine down and start it again to apply a change. For a suspended machine, first run `osmates vm stop dev --discard`. Until then, turning the microphone off doesn't stop the recording.

The guest records silence while that request is open, after you refuse it, and while an agent drives the machine. Machines that agents create or clone start muted. On Apple Virtualization, an agent [can't drive](https://osmates.com/docs/agent-control#if-an-agent-cant-take-control) a machine that hears your microphone.

`osmates vm info dev` shows the sound settings and what this run plays and records.
