diff --git a/hypervisor/context.go b/hypervisor/context.go
index <HASH>..<HASH> 100644
--- a/hypervisor/context.go
+++ b/hypervisor/context.go
@@ -293,8 +293,13 @@ func (ctx *VmContext) InitDeviceContext(spec *pod.UserPod, wg *sync.WaitGroup,
 		}
 	}
 
+	hostname := spec.Name
+	if len(hostname) > 64 {
+		hostname = spec.Name[:64]
+	}
+
 	ctx.vmSpec = &VmPod{
-		Hostname:   spec.Name,
+		Hostname:   hostname,
 		Containers: containers,
 		Dns:        spec.Dns,
 		Interfaces: nil,
Hostname length should be no more than <I>